Keeping application to notify icon

  • Thread starter Thread starter Beenish Sahar Khan
  • Start date 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
 
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.
 
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.
 
Back
Top