Questions tagged [toolstripmenu]

111 questions
12
votes
1 answer

Putting hotkey/shortcut text next to toolstrip menu items in winforms

I want to be able to show the hotkey combination assigned to a toolstrip menu item in winforms. For instane, in any program (even your browser settings menu) you can see various menu items, and generally, aligned to the right of their item, is their…
jwarner112
  • 1,492
  • 2
  • 14
  • 29
10
votes
4 answers

Change the border color of Winforms menu dropdown list

Is it possible to change the border color of a toolstrip menu dropdown list. In my sample below I would like the dropdown menu to have 1 color (blue) without the white border currently being displated, but keeping the main menu ('My Menu') item…
Cameron Castillo
  • 2,712
  • 10
  • 47
  • 77
10
votes
2 answers

Adding Items to ToolStrip at RunTime

Hello I have a ToolStripMenu with a "Favorites" menu that I want to add sub items to during my WinForms app at run time. I have a datagridview that I right click on to show a context menu that has an "Add to Favorites" option. When that event is…
ikathegreat
  • 2,311
  • 9
  • 49
  • 80
7
votes
3 answers

ToolStripMenuItem bigger vertical padding, or vertically centering text in a bigger ToolStripMenuItem

I'm trying to set a bigger vertical padding for ToolStripMenuItems in a ContextMenuStrip. However, changing the Padding.Top property adds padding to the bottom, instead of the top. I also tried setting a larger Height for the ToolStripMenuItem, it…
TechAurelian
  • 5,561
  • 5
  • 50
  • 65
7
votes
5 answers

C# shortcut key underscore not displayed in built application

I have a small problem with .Net 4.0 ToolStripMenuItem caption. I want it to underscore the Shortcut (access) key letter in the item text. I used the ampersand sign in the item text field: '&New map', and it looks fine in the editor: But, when I…
6
votes
2 answers

Adding ToolStripMenuItem to ContextMenuStrip at specific index

Is it possible to add ToolStripMenuItems to ContextMenuStrip at a specific index? I have a list of items and I want to add them to a ContextMenuStrip and I want to know if its possible to add the items to the ContextMenu at specific index. This is…
Erik
  • 1,285
  • 2
  • 12
  • 10
6
votes
2 answers

How can I prevent a disabled ToolStripMenuItem from showing a border on mouse over?

Yes, exactly same as the title, in my project some of toolstripmenuitems were disabled. But when i bring the cursor over the menu item, a blue border is appearing like this: But i don't want this. I want it like this: Could you help me, how do i…
user1372430
4
votes
2 answers

Can you change font for ToolStripMenuItem in custom Renderer

I've got a menu with a custom Renderer: menuMain.Renderer = new ToolStripProfessionalRenderer(new MenuColors()); Is there a way to change the font or perhaps make the menu item italic when moving the mouse over it? I've got the event to change the…
Cameron Castillo
  • 2,712
  • 10
  • 47
  • 77
4
votes
2 answers

Do not close ToolStripMenu on clicking in winforms

I work on a c# winform project that the main toolstripmenu have not to be hide after user clicks on its item, how can I do that?
ArMaN
  • 2,306
  • 4
  • 33
  • 55
4
votes
3 answers

c# winforms toolstripmenuitem change background

OK, someone please tell me why this is not working. I have a simple MenuStrip in winforms app (c#). It has ToolStripMenuItems. In the properties window of the designer, I select BackColor = White. In Desginer.cs file I can see it. Running the app,…
Ehud Grand
  • 3,501
  • 4
  • 33
  • 52
4
votes
2 answers

Drawing text in vb.net to match a menu item

I'd like to put a number in the left-hand margin of a menu item in vb.net 2010, but it seems this can only be set to an image. So, I've been trying to create an image with the number I want there using Graphics.DrawString(). I've tried various ways,…
dsl101
  • 1,715
  • 16
  • 36
4
votes
1 answer

how can I change toolstripmenuitem border color?

I made a form like this (language c# - VisualStudio2012): https://i.stack.imgur.com/5GEY1.jpg How can I change the border color of toolstripmenuitem from white to another, or disable it ? code: class CustomProfessionalColors :…
Cuồn Yết
  • 135
  • 1
  • 1
  • 13
4
votes
4 answers

Mouse wheel scrolling Toolstrip menu items

I have some menus that contain many menuitems. Mouse wheel doesn't scroll them. I have to use the keyboard arrows or click the arrows at top and bottom. Is it possible to use the mouse wheel to scroll toolstrip menu items? Thanks
Jerry
  • 4,258
  • 3
  • 31
  • 58
3
votes
1 answer

ToolStripMenuItem added to several places?

I have a large list of entities which the user needs to be able to select from. I have a ContextMenuStrip on my window, and has a few MenuItems for each category of entity. In a library example, think "Staff", "Borrowables", "Patrons",…
Ozzah
  • 10,631
  • 16
  • 77
  • 116
3
votes
0 answers

How can I remove the shadow of a ToolStripMenuItem?

I am currently creating a menu-bar for my program. My problem is that the drop-down creates a shadow as you can see here. I would like to have a flat appearance for my drop-down but there is no attribute for this as far as I know so I am also happy…
At Least Vision
  • 515
  • 5
  • 17
1
2 3 4 5 6 7 8