Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • *Experts*
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...