G
Guest
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 ContextMenuStrip (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 contextmenustrip using either:
contextMenuStrip1.Show(this,
this.PointToClient(Cursor.Position));
or:
contextMenuStrip1.Show(this.PointToClient(Cursor.Position));
This works well and displays the contextmenustrip 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 ContextMenuStrip (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 contextmenustrip using either:
contextMenuStrip1.Show(this,
this.PointToClient(Cursor.Position));
or:
contextMenuStrip1.Show(this.PointToClient(Cursor.Position));
This works well and displays the contextmenustrip 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.