Questions tagged [toolstripmenu]
111 questions
0
votes
3 answers
Releasing event handlers for dynamically created items
I'm populating a ToolStripMenu with entries from an XML file. Each ToolStripItem added to the menu automatically gets about a dozen event handlers assigned to it. The user has the option to change the XML and refresh the menu, which clears…

Kevin Denham
- 519
- 1
- 6
- 24
0
votes
2 answers
Programmatically add ToolStrip menu items
How to add ToolStrip menu items programmatically?

Argon
- 221
- 5
- 14
0
votes
1 answer
How to view Horizontal scroll in the toolstripmenuitem
I have created a toolstipmenuitem in which i added a lot of toolstripmenuitems as sub menus.
And then i restricted the maximum size of the toolstripmenuitem which results in:
Vertical scrolling automatically becomes enabled as shown in the…

user2691432
- 93
- 1
- 2
- 10
0
votes
1 answer
right-click doesn't work with toolstripmenuitem
I have some code:
_Item.MouseDown += new MouseEventHandler(delegate(Object o, MouseEventArgs a)
{
SrcRoot = BuilderParametresPath[_index].pngPath;
DstRoot = BuilderParametresPath[_index].scenesPath;
TextsXmlFileName =…

user2995099
- 35
- 2
- 8
0
votes
1 answer
insert menu items in ascending order and vertically in Toolstripmenuitem
I have a inserted items in the toolstripmenuitem control successfully. But i am not able to rearrange items as shown below :-
For ex :-
Currently Items are added in toolstripmenuitem like below fashion:-
aa bb cc dd
ee ff gg hh
But i want like this…

user2691432
- 93
- 1
- 2
- 10
0
votes
1 answer
C# Positioning of MenuStrip.Items (SubMenues)
I have put together this radio button menustrip existing of 2 seperate submenu items
when compiling the 2 menus show up on top of each other... how is it possible to have them side by side?
Here is a screenshot...…

incubuzz1978
- 53
- 1
- 8
0
votes
2 answers
How do I close a toolstripmenuitem that is set to autoclose = false?
I have a menu of items that the user can toggle. I wanted the menu to stay open so the user can check all the items they want. I set autoclose = false and now that works great. However, I also cannot close the window now lol. I tried clicking…

Bill Hartsford
- 3
- 1
- 3
0
votes
1 answer
Add ToolStripMenuItem in new row when one row is filled inside ToolStrip
I have one form and inside form i have one toolstrip control, and i am adding ToolStripMenuItem dynamically.
What i want is when one is filled up, items should list in next row.
I tried this for increasing the height and width of form but adding…

SK.
- 4,174
- 4
- 30
- 48
0
votes
2 answers
How to reference a Menu Item via Tag or name
I am working on Access Control List in which I have to show/hide Menu Items based on assigned roles. I have referreed every menu Item via TAG. Now I have an array stored all TAG names.
Is it possible I just loop thru Array of Tag names and just…

Volatil3
- 14,253
- 38
- 134
- 263
0
votes
1 answer
Enable/Disable SubmenuItems on Mdi Parent form in C# using Windows Application?
on Mdi parent form i am calling my child forms using menu items. on Child form Load my Menu item should be disabled on child form closed it will again Enabled.., i try FormClosing event handler i get the answer..,
private void btnMn1_Click(object…

user2173324
- 45
- 2
- 9
0
votes
3 answers
VB.NET Execute code on events for dynamically added ToolStripMenuItem
VB.NET
On the opening of a menu item (i.e. the top-level menu item), i have added ToolStripMenuItem (i.e. DropDownItem) to the menu item at runtime.
The ToolStripMenuItems added by me during runtime are the names of the forms active in the current…

Shraavan Acharya
- 23
- 1
- 7
0
votes
1 answer
Enable and Disable ToolStripMenu entries in C#?
I have a Form that contains a Menu with two entries, which are Menu and Tools. The two Menues have some SubMenus.
Now i have a TextBox called txtSelect and a Button called btnVisible, if I enter 1,2 in the TextBox, the SubMenus in the Menu should…

Aneev Reddy
- 1
- 4
0
votes
1 answer
ToolStripMenuItem Clear Method - will it remove also subitems?
Will myStrip.DropDownItems.Clear() remove also SubItems?
mystrip
- Item1
- SubItem1
- AnotherSubItem1
- Item2
After Clear() method
will it be just:
mystrip
or
mystrip
- NOTHING HERE
- SubItem1
-…

sczdavos
- 2,035
- 11
- 37
- 71
0
votes
1 answer
How to work around missing event ToolStripMenuItem.Showing?
I need to know when a tool strip menu item is about to be shown (in order to create the content on a JIT basis).
I have a potentially very large hierarchy of stuff. It can be navigated in a treeview, but also via "breadcrumbs", e.g. "Music > Pop >…

The Dag
- 1,811
- 16
- 22
0
votes
1 answer
How do I automatically add something to a ToolStripMenu, then read the text of that item?
Say, for example, I have a ToolStripMenu. I have a tab already made (let's call it Download), and want a substrip of it (the "type here" part) to be automaticaly made. I want it to be text that the string downloadedString is. Then, later, when it's…

Jon
- 2,566
- 6
- 32
- 52