Keeping application to notify icon

  • Thread starter Beenish Sahar Khan
  • Start date
B

Beenish Sahar Khan

I am using C#.I want to start my application so that its notify icon is
added to the
system tray, i don't want to show any starting form. I want user to interact
through the notify icon...just like MSN. Is there any way to do this?
regards,
beenish
 
B

Beenish Khan

I did called the Hide() function in the constructtor, after the
initialization part, but it didn't work. :( Right now i have set the
opacity level to 0 %, but this is surely not a good solution.
 
M

Marc Jennings

this.ShowInTaskbar = false;
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;

That's how I did it, anyway. It's not perfect as you can still
ALT-TAB to the form, but if you make it 10x10, with a position off the
screen (-100,-100 for example) you should get away with it.
 

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