border

Miembros:
Mensajes:
Temas:
Online:

Ultimo Miembro:

 
 

Cuenta Bancaria en EEUU
  #1 (permalink)  
Antiguo 28-12-2005, 12:21:37
Buena Participación en el Foro
 
Registrado: mar 2005
Posts: 69
alqaid Valoración +2
Predeterminado Pregunta sencilla

- como saco un mensaje por pantalla, con msgbox por ejemplo o inputbox me da igual, y si el usuario pasado un tiempo x no lo ha aceptado automáticamente se dé por aceptado, y continue el proceso.

:smt003
__________________
### http://www.ibernodos.com ###
Responder Con Cita
  #2 (permalink)  
Antiguo 28-12-2005, 12:58:06
Avatar de WILFREDO POLANCO
Gran Participación en el Foro
 
Registrado: jun 2005
Posts: 173
WILFREDO POLANCO Valoración +2
Predeterminado

Te recomiendo para tu caso que uses un formulario y de aspecto similar al msgbox o inputbox y con un control timer realices lo que deseas...

Disculpa lo iluso de recomendar, Espero haberte servido de Algo, Suerte
__________________
---- Wilfredo Polanco ----
República Dominicana, Santo Domingo, D.N.
Responder Con Cita
  #3 (permalink)  
Antiguo 28-12-2005, 14:50:41
Avatar de Alella
Miembro SuperVIP del Foro
 
Registrado: mar 2004
Ubicación: BARCELONA - ESPAÑA
Posts: 1.000
Alella Valoración +2
Predeterminado

Hola, que tal.

Mírate este post con un truco rectificado. Espero que te ayude.

http://www.vb-mundo.com/programacion...ght=desaparece
__________________
Un saludo.

Alfredo
Barcelona-España
_________________
Visual Basic
Videos Programacion
Foro Programacion
Tutoriales Programacion
Responder Con Cita
  #4 (permalink)  
Antiguo 28-12-2005, 15:59:47
Avatar de J.M.Movilla
Administrador
 
Registrado: dic 2002
Ubicación: BURGOS - ESPAÑA
Posts: 5.490
J.M.Movilla Valoración +2
Predeterminado

Yo utilizo el truco que te recomienda Alella en el post anterior, y que encontrarás en http://www.vb-mundo.com/verTruco.asp?truco=265. Me va perfectamente.
__________________
José María Movilla Cuadrado
______________________
www.foro.vb-mundo.com
www.vb-mundo.com

Responder Con Cita
  #5 (permalink)  
Antiguo 28-12-2005, 16:52:46
Buena Participación en el Foro
 
Registrado: mar 2005
Posts: 69
alqaid Valoración +2
Predeterminado gracias a todos-

A partir de las ayudas encontre esto
funciona perfectamente, ya que los códigos anteriores me daban algún error.

Muchas Gracias a todos.


Many programs display message boxes that automatically close after a period of time, including printer errors and closing outlook. In VB, this is more complicated than it should be, but still possible. Here's how.

'Module Code
Private Declare Function KillTimer Lib "user32" (ByVal hWnd As Long, ByVal nIDEvent As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SetForegroundWindow Lib "user32" (ByVal hWnd As Long) As Long
'// Message we receive telling us to close the message box
Public Const NV_CLOSEMSGBOX As Long = &H5000&
Public Sub TimerProc(ByVal hWnd As Long, ByVal uMsg As Long, ByVal idEvent As Long, ByVal dwTime As Long)
'// this is a callback function. This means that windows "calls back" to this function
'// when it's time for the timer event to fire
'// first thing we do is kill the timer so that no other timer events will fire
KillTimer hWnd, idEvent
'// select the type of manipulation that we want to perform
Select Case idEvent
Case NV_CLOSEMSGBOX '// we want to close this messagebox after 4 seconds
Dim hMessageBox As Long
'// find the messagebox window
'// change the text to whatever the title of the message box is
hMessageBox = FindWindow("#32770", "Self Closing Message Box")
'// if we found it make sure it has the keyboard focus and then send it an enter to dismiss it
If hMessageBox Then
Call SetForegroundWindow(hMessageBox)
'// this will result in the default option being chosen
SendKeys "{enter}"
End If
End Select
End Sub


'Form Code
Private Declare Function SetTimer Lib "user32" (ByVal hWnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long

Private Sub cmdShowMsg_Click()
'// this shows a messagebox that will be dismissed after 4 seconds

'// set the callback timer and pass our application defined ID (NV_CLOSEMSGBOX)
'// set the time for 4 seconds (4000 microseconds)
SetTimer hWnd, NV_CLOSEMSGBOX, 4000, AddressOf TimerProc

'// call the messagebox function
If MsgBox("Watch this message box close itself after four seconds. The printer is out of paper. Retry or Cancel? (Example)", vbRetryCancel + vbDefaultButton1, "Self Closing Message Box") = vbRetry Then
MsgBox "Retry!"
Else
MsgBox "Cancel"
End If

End Sub
__________________
### http://www.ibernodos.com ###
Responder Con Cita
Respuesta


Herramientas
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Trackbacks are habilitado
Pingbacks are habilitado
Refbacks are habilitado


Temas Similares
Tema Autor Foro Respuestas Último Mensaje
una pregunta sencilla afede19 Visual Basic 6.00 3 11-10-2007 15:36:12
Pregunta sencilla de comentarios jhanluigui Visual Basic 6.00 4 06-04-2005 04:23:21
Pregunta Sencilla Insomnia17 Crystal Reports 9 23-02-2005 07:44:01
Otra Pregunta Sencilla spider_Ramon Visual Basic.NET 2003 & 2005 1 19-02-2005 20:31:33
sencilla pregunta::: sta_pelon Visual Basic 6.00 14 17-09-2004 01:00:00


La franja horaria es GMT. Ahora son las 06:07:20.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
A vBSkinworks Design

Alojado en el servicio Premium de Masquewebs | Diseño mejorado por MasqueWebs

right