-1

I've a number of forms in my C# application. I am using notifyIcon only on the very first form. The problem I am facing is that when I load other forms (at run-time) they also create notifyIcons in system tray.

Note: Only two forms are causing this problem.

Please tell me how can I avoid it.

Muhammad Ali
  • 139
  • 1
  • 1
  • 6

2 Answers2

0

if you have 1 process with few form than use 1 instance of notifyIcon or count of them and do not show more 1 notifyIcon

if you have 2 or more process - you have problem =)

burning_LEGION
  • 13,246
  • 8
  • 40
  • 52
0

I set visible property to 'false' under 'property window' (for notifyIcon) and then set it to 'true' in form load event. The problem solved.

Muhammad Ali
  • 139
  • 1
  • 1
  • 6