NotifyIcon: How to hide associated form?

A

Axel Dahmen

Hi,

I want to write a small tool having only the NotifyIcon as its visible GUI.
I don't need the form associated with the NotifyIcon. How can I set the
form's visible status to false? If I write "this.Visible=false;" after the
call to InitializeComponent() nothing changes; the form's still visible.

How can I hide the form?

TIA,
Axel Dahmen
 
C

Chris Dunaway

If you don't want the form to be visible, then don't show it! Add a
module to your project and add a Sub Main to it. Place the code to
create your NotifyIcon there.
 

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