After hiding dialog

Eran

Member
Joined
Apr 12, 2003
Messages
69
OK,
I managed to hide the dialog form at start up.
I put the main function in other class then the form init class.
the problem is that the app terminate.
I want to use icon in the tray-icon. is there a way to do that
without causing the app to terminate?
 
Simply use the .Hide() method of the main form, rather than .Close(). The app only terminates if the application which was used to start the program (i.e. your main form) is actually destroyed. If you hide it, it just becomes invisible.
 
Back
Top