J
Jeff Gaines
I have written an app that spends most of its time in the System
Tray. The main form opens on double clicking the icon and the
context menu shows on right clicking the icon.
I would also like the context menu to show on left clicking the
icon. I have trapped the MouseDwon event and can show the
context menu but it appears at screen location 0,0. I can't use
this.PointToClient because the form is invisible when the icon
is clicked.
Any hints on working out what the location of the Context Menu
should be so it appears in the same place whether I right click
or left click?
Many thanks.
Tray. The main form opens on double clicking the icon and the
context menu shows on right clicking the icon.
I would also like the context menu to show on left clicking the
icon. I have trapped the MouseDwon event and can show the
context menu but it appears at screen location 0,0. I can't use
this.PointToClient because the form is invisible when the icon
is clicked.
Any hints on working out what the location of the Context Menu
should be so it appears in the same place whether I right click
or left click?
Many thanks.