Questions tagged [toolstripmenu]

111 questions
1
vote
0 answers

Remove border from ToolStripMenuItem

I am customizing my MenuStrip to make it look better. I've gone really far from default one but there is 1 thing left which I could not change. My MenuStrip looks like this right now. As you can see in the image there is a grey border around my…
Shino Lex
  • 487
  • 6
  • 22
1
vote
1 answer

Is there a way to know which TreeNode is right clicked after one of its ContextMenuStrip items is left clicked and the item's CheckedState changes?

Update on 5/10/2018. orhtej2 suggested that my question might be a dup of Determine what control the ContextMenuStrip was used on. It is almost a dup, but my scenario has one significant difference. See my modified question and my answer for…
VA systems engineer
  • 2,856
  • 2
  • 14
  • 38
1
vote
1 answer

DropDownMenuItem check should uncheck other DropDownMenuItems

I'm creating a ToolStripMenuItem's DropDownItems at runtime. Me.mnuExtrasSecondaryLCID.DropDownItems.Clear() Dim iCount As Integer = -1 For Each nLang As clsLanguage In g_LCIDs If nLang.IsLeader Then iCount += 1 …
tmighty
  • 10,734
  • 21
  • 104
  • 218
1
vote
1 answer

Avoid Toolstripmenu close on items or Dropdownitem selected

I have Toolstrip menu items. It is having two level of menu items. How to avoid close functionality of Toolstrip menu item when clicks on level 2 menu item and retains the previous one. Example,
user1645200
  • 135
  • 2
  • 13
1
vote
1 answer

Tri State Chech box for ToolStripDropDownButton

I have statusbar strip with ToolStripMenuItems. I need to gruop the Toolstrip menu items and Implement TriStateCheckbox functionality, Is it Possible to Create checkbox with ToolStripMenitems? If its not Possible for Point 1, then How to Add…
user1645200
  • 135
  • 2
  • 13
1
vote
1 answer

Close ToolStripMenuItem when mouse leaves ToolStripMenuItems

I am new to windows Forms so I am wondering what the best approach to my problem is. I want the ToolStripMenuItems of the ToolStripDropDownMenu to close only when the user's mouse leaves the area containing them (All the…
1
vote
1 answer

Use different Highlight color for different ToolStripMenuItems

There is one ToolStripMenuItem object which is containing other 3 ToolStripMenuItems on dropdown. I want use different hightlight colors on MouseHover of different ToolStripMenuItems. Say, For Yes - Green. For No - Red. For MayBe - Blue. The color…
Arpit Gupta
  • 1,209
  • 1
  • 22
  • 39
1
vote
1 answer

VB .NET Verify checked status of many ToolstripMenuItems

i would like to uncheck all menu items of a main ToolStripMenuItem (called MyMainMenu) in a MenuStrip when i click on another menu entry. The main menu contains some menu items and a separator. I tried the following code: Private Sub…
hawake
  • 37
  • 9
1
vote
0 answers

How to use win32gui or similar, to click an other window toolStrip1 item button through its button name?

In Python2.7 with win32, I can easily get other window's toolStrip1 handle through win32gui.EnumChildWindows, however I do not know how to get it's button item control through it's item name, e.g click item button "Load" in toolStrip1. Can I try to…
charles
  • 11
  • 5
1
vote
0 answers

How to handle click-event on dynamic ToolStripMenuItem c++

Now I need to handle click-event each dropdownitems from ToolStripMenuItem (named "hetToolStripMenuItem") my dropdownitems is dynamic from file that I loaded to my program. I try to find solutions but it didn't work with my program. Can anyone help,…
WICHPONG KAO-IAN
  • 385
  • 1
  • 2
  • 6
1
vote
1 answer

ToolStripMenuItem get enabled staying disables when change focus from one to other child form

I've got some ToolStripMenuItem in a MDIParentForm, which I use to enable or disable depending of the status of the form I call clicking on them. If the form is enabled, the ToolStripMenuItem is disabled not allowing to open a new form like it's…
Carol
  • 553
  • 2
  • 10
  • 24
1
vote
1 answer

VB.NET Creating a dynamic StripMenu

I'm trying to create a dynamic stripmenu, basically the program reads a XML file containing the structure for the menus, this I've done successfully. But when i click on the menu "File" as example nothing happens, yes i know i have to create a…
fzuid
  • 27
  • 1
  • 5
1
vote
1 answer

Cant load image in context menu as icon

I am trying to use the code from the following link: VB- Helper Create menu items at run time with images, shortcut keys, and event handlers in Visual Basic .NET The only difference is that I want a local image and not one from my.Recources What I…
Argon
  • 221
  • 5
  • 14
1
vote
1 answer

VB.NET ContextMenuStrip not found on form when using "for each control"

I need to do something with a ContextMenuStrip if it exists on a form. Therefore I tried For Each c As Control In uForm.Controls If TypeOf c Is ContextMenuStrip Then Dim n As ContextMenuStrip n = DirectCast(c,…
tmighty
  • 10,734
  • 21
  • 104
  • 218
1
vote
1 answer

VB .net Context/ToolStripMenu at runtime

I have a ContextMenu like in this picture. Now i want to add where it says ".rtf" more MenuItems at runtime. I cant seem to make it... Dim myContextMenu As ContextMenuStrip = Form1.mnuOptions Dim myMenuItem As ToolStripMenuItem =…
drumbun
  • 61
  • 5