Ciao...
ecco il mio quesito:
devo far chiudere il browser dopo X tempo, ho pensato di farlo associando un timer ma non sono riuscito ad andare oltre l'assegnazione dell'intervallo...
Nell'esempio imposto il tempo indicato nella textbox
quando viene premuto Command1 (form con: txtbox1, timer1, command1)
-------- inizio codice ------------------
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub Command1_Click()
Dim RetValue As Long
Timer1.Interval = Text1
RetValue = ShellExecute(Me.hwnd, "Open", "http://www.google.it", 0&, 0&, 0&)
Select Case Timer1.Interval
Case Is = 0
MsgBox "Tempo Scaduto!"
End Select
End Sub
:quote:
---------- fine codice -----------------
Come fare???
Grazie a tutti, please help me!