Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop the application

Status
Not open for further replies.

fheyn

Programmer
Mar 22, 2001
198
DE
hi,
I'm working on a program, which once startet will run for-
ever, looking form time to time for files within a specific
folder. If found it will process these files.
To stop the program I createt a tray-icon. When clicked-on
it shows a dialog which allows to stop the programm. If no
action is taken, it will hide after a few seconds.
problem : if no files are found the dialogbox can be shown
and the program can be stopped. However if files are found
once the dialog is shown it won't hide and won't allow stopping the program.
Anyone out there with a solution to this problem?
thanks in advance
 
Ok . . . so your problem is the following. . .
>However if files are found
once the dialog is shown it won't hide and won't allow stopping the program

How and what are you using as the "dialog"?
How are you hiding the "dialog"?



"All I ask is the chance to prove that money can't make me happy." - Spike Milligan
 
hi tb,
thanks for replying
I will be it bit more specific now.
action when clicking on tray-icon :
Dlg.Show
Dlg.TrayTimer.Enabled = True
Dlg.lblStatus.Caption = "Status : " & sStatus
then
Private Sub DlgTimer_Timer()
Dlg.Hide
DlgTimer.Enabled = False
End Sub
and
Private Sub cbStop_Click()
End
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top