Open FreeVB opened 3 months ago
ContextMenu contextMenuStrip = new ContextMenu(); ToolStripMenuItem menuItem1 = new("menu 1", Resources.Led.ToBitmap()); ToolStripMenuItem menuItem2 = new ("menu2", Resources.Led.ToBitmap()); contextMenuStrip.Items.Add(menuItem1); contextMenuStrip.Items.Add(menuItem2); notifyIcon.ContextMenu= contextMenuStrip;
How do I add a right-click pop-up menu to Winform? I don't show the menu text as above.
The icon is also not displayed.
ContextMenu contextMenuStrip = new ContextMenu(); ToolStripMenuItem menuItem1 = new("menu 1", Resources.Led.ToBitmap()); ToolStripMenuItem menuItem2 = new ("menu2", Resources.Led.ToBitmap()); contextMenuStrip.Items.Add(menuItem1); contextMenuStrip.Items.Add(menuItem2); notifyIcon.ContextMenu= contextMenuStrip;
How do I add a right-click pop-up menu to Winform? I don't show the menu text as above.
The icon is also not displayed.