Minimize problem when using minimize to system tray

S

shawrie

Hi

can someone help?
I have some code that on startup minimize's the form and puts it in
the system tray. This part works fine and i can see my icon in the
system tray. If the user chooses to restore the form and then minmize
it i get just the title bar of the form at the bottom of the desktop
instead of minimizing to the system tray again

Neil
 
M

Mythran

shawrie said:
Hi

can someone help?
I have some code that on startup minimize's the form and puts it in
the system tray. This part works fine and i can see my icon in the
system tray. If the user chooses to restore the form and then minmize
it i get just the title bar of the form at the bottom of the desktop
instead of minimizing to the system tray again

Neil

What is the code you are using to "restore" and "minimize" the form?

Just minimizing a form won't work. You have to control minimizing to the
system tray by "hiding" (this.Hide() or Me.Hide()) the form and then setting
the Visible property on the NotifyIcon instance to show it in the system
tray.

HTH,
Mythran
 
R

Ravi Bhavnani

Please post a code fragment that contains your minimize logic.
I suspect you're not showing your app's system tray icon in your
minimize handler.

/ravi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top