I've written an application that can minimize to the tray and can reappear if
you double click on the icon in the tray (ShowInTaskbar is set to false).
I've also created a ContextMenuStri p (Visual C# 2005) so that you can write
click on the icon in the tray for options. I then captured the event for
mouse clicks on the Notify Icon so that I could detect the left click event
and then display the contextmenustri p using either:
contextMenuStri p1.Show(this,
this.PointToCli ent(Cursor.Posi tion));
or:
contextMenuStri p1.Show(this.Po intToClient(Cur sor.Position));
This works well and displays the contextmenustri p appropriately, however
whilst doing this it also creates an icon for the application in the taskbar
which isn't intended as the form has been set to ShowInTaskbar = false. I've
also tried using a dummy control as the parameter to show to no avail.
you double click on the icon in the tray (ShowInTaskbar is set to false).
I've also created a ContextMenuStri p (Visual C# 2005) so that you can write
click on the icon in the tray for options. I then captured the event for
mouse clicks on the Notify Icon so that I could detect the left click event
and then display the contextmenustri p using either:
contextMenuStri p1.Show(this,
this.PointToCli ent(Cursor.Posi tion));
or:
contextMenuStri p1.Show(this.Po intToClient(Cur sor.Position));
This works well and displays the contextmenustri p appropriately, however
whilst doing this it also creates an icon for the application in the taskbar
which isn't intended as the form has been set to ShowInTaskbar = false. I've
also tried using a dummy control as the parameter to show to no avail.
Comment