Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get double value in string format? Pin
Alex Dunlop29-Jul-21 6:20
Alex Dunlop29-Jul-21 6:20 
GeneralRe: How to get double value in string format? Pin
OriginalGriff29-Jul-21 6:32
mveOriginalGriff29-Jul-21 6:32 
GeneralRe: How to get double value in string format? Pin
Alex Dunlop29-Jul-21 6:48
Alex Dunlop29-Jul-21 6:48 
GeneralRe: How to get double value in string format? Pin
OriginalGriff29-Jul-21 6:32
mveOriginalGriff29-Jul-21 6:32 
AnswerRe: How to get double value in string format? Pin
Richard MacCutchan23-Jul-21 8:59
mveRichard MacCutchan23-Jul-21 8:59 
GeneralRe: How to get double value in string format? Pin
Alex Dunlop29-Jul-21 6:21
Alex Dunlop29-Jul-21 6:21 
GeneralRe: How to get double value in string format? Pin
Richard MacCutchan29-Jul-21 6:31
mveRichard MacCutchan29-Jul-21 6:31 
QuestionNotify Icon Context Menu Won't Go Away Pin
Richard Andrew x6422-Jul-21 13:19
professionalRichard Andrew x6422-Jul-21 13:19 
I have a notification icon running on the taskbar and it would only show its context menu when I right-clicked it.

I wanted to make it show the context menu when clicking the left mouse button, also.

So I attached a handler to the MouseClick event with the following code:
C#
_NotifyIcon.ContextMenuStrip.Show(Control.MousePosition, ToolStripDropDownDirection.AboveRight);
This shows the menu properly, but there is one problem.

The menu doesn't go away if I click on another window without choosing an item from the menu. Right now, the only way to make the left-click-shown menu go away is to click a menu item or right-click the notification icon.

The menu that appears when right clicking the icon goes away properly if you click another window on the desktop.

Does anyone know how to make the menu go away if the user clicks another window?



The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: Notify Icon Context Menu Won't Go Away Pin
Luc Pattyn22-Jul-21 16:25
sitebuilderLuc Pattyn22-Jul-21 16:25 
GeneralRe: Notify Icon Context Menu Won't Go Away Pin
Richard Andrew x6423-Jul-21 2:20
professionalRichard Andrew x6423-Jul-21 2:20 
GeneralRe: Notify Icon Context Menu Won't Go Away Pin
Richard Andrew x6423-Jul-21 12:27
professionalRichard Andrew x6423-Jul-21 12:27 
GeneralRe: Notify Icon Context Menu Won't Go Away Pin
Luc Pattyn23-Jul-21 12:37
sitebuilderLuc Pattyn23-Jul-21 12:37 
QuestionDataGirdView black screen Pin
Choi KyuJung21-Jul-21 16:08
Choi KyuJung21-Jul-21 16:08 
AnswerRe: DataGirdView black screen Pin
OriginalGriff21-Jul-21 20:20
mveOriginalGriff21-Jul-21 20:20 
GeneralRe: DataGirdView black screen Pin
Choi KyuJung22-Jul-21 18:33
Choi KyuJung22-Jul-21 18:33 
GeneralRe: DataGirdView black screen Pin
OriginalGriff22-Jul-21 19:12
mveOriginalGriff22-Jul-21 19:12 
AnswerRe: DataGirdView black screen Pin
Gerry Schmitz22-Jul-21 5:00
mveGerry Schmitz22-Jul-21 5:00 
GeneralRe: DataGirdView black screen Pin
Choi KyuJung22-Jul-21 15:33
Choi KyuJung22-Jul-21 15:33 
QuestionWhy I can not get requested data when I open connection? Pin
Sajo Nezic19-Jul-21 22:29
Sajo Nezic19-Jul-21 22:29 
AnswerRe: Why I can not get requested data when I open connection? Pin
OriginalGriff19-Jul-21 23:21
mveOriginalGriff19-Jul-21 23:21 
AnswerRe: Why I can not get requested data when I open connection? Pin
jsc4220-Jul-21 0:14
professionaljsc4220-Jul-21 0:14 
QuestionHow to create a gauge in C# Pin
Ken1213318-Jul-21 6:32
Ken1213318-Jul-21 6:32 
AnswerRe: How to create a gauge in C# Pin
Dave Kreskowiak18-Jul-21 5:45
mveDave Kreskowiak18-Jul-21 5:45 
GeneralRe: How to create a gauge in C# Pin
Ken1213318-Jul-21 6:39
Ken1213318-Jul-21 6:39 
GeneralRe: How to create a gauge in C# Pin
Dave Kreskowiak18-Jul-21 6:49
mveDave Kreskowiak18-Jul-21 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.