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 Const SW_SHOW = 5
Private Sub cmdAktiviraj_Click()
If lblVreme.Caption = Vreme And lblDatum.Caption = Datum Then
ShellExecute hwnd, "open", Sajt, vbNullString, vbNullString, SW_SHOW
End If
End Sub
Private Sub Form_Load()
Timer1.Enabled = True
Timer1.Interval = 900
Vreme = txtVreme.Text
Datum = txtDatum.Text
Sajt = txtSajt.Text
End Sub
Private Sub Timer1_Timer()
lblVreme.Caption = Time
lblDatum.Caption = Date
End Sub
Unapred Hvala,
Aleksandar