menustrip

How can I draw arrows on my left-docked MenuStrip?

I have a C# form into which I've placed a left-docked MenuStrip. This MenuStrip contains some menu items which contain submenus, and some menu items which are effectively buttons (clicking on them results in an action taking place; n.b., I realize this is not a good design). I would like to have the menu items which have menus associat...

What navigation control would you choose to use in your application ?

ToolStrip with MenuStrip or RibbonBar? ...

F# winforms MenuStrip problem: Not sure how to get a handle on DropDownItems

I have recently started learning F#, and this is the first time I've ever used WinForms. Here is my code. #light open System open System.Windows.Forms let form = let temp = new Form() let ms = new MenuStrip() let file = new ToolStripDropDownButton("File") ignore(ms.Items.Add(file)) ignore(file.DropDownItems.Add("Test...

Adding a horizontal separator in a MenuStrip

I can't seem to find any way to add a horizontal separator in a MenuStrip. Visual Studio complains Cannot add ToolStropSeparator to MenuStrip. Any idea's how I can do this? Thanks. ...

Winforms MenuStrip Underlined Hotkey Letter

Typically the hotkey letters on a MenuStrip are underlined. (&File, &Open, etc) On a project I'm working on the underline shows up in the designer, but not at run time. I can't find the property that controls this. Anyone out there know? ...

How to remove MenuStrip submenu margins?

Hi, Do you know how to remove margin (probably the one for image and check box on the left and right) of the submenu in MenuStri? In MSDN article there is explained how to remove it from context menus. It is written that I should do it the same way in MenuStrip but MenuStrip do not have ShowImageMargin nor ShowCheckMargin. Maybe I'm mis...

"Red Cross" problem on MenuStrip and ToolStrip

Hi, I have a piece of software that has worked fine on many machines, althoughon one machine there is a problem that appears to occur occasionaly, the MenuStrip and the ToolStrip both appear as a blank white background with a red cross over it, as a custom control would if you created a null object. This doesn't happen whilst I am debug...

comparision of WPF with WINFORM control

we have "layoutstyle" property in Winform to change the layoutstyle to horrizontal/vertical(all heading and Submenus), what is to be used in WPF to get the same result. ...

.NET MenuStrip with native Windows renderer?

Does anyone know how to have the MenuStrips to rendered with native Windows look and feel depending the OS version the user is using? The current renders don't do it... I'm currently using a third party control that can do it but uses MainMenu and ContextMenu instead of what I'm looking for, the MenuStrip... ...

Will stock WPF get a menustrip control?

My "metric" for when WPF is truly "ready to go" is when there is a menustrip control available in Visual Studio. Without that, from my perspective, it's still "under construction" a bit, in comparision to winforms. This isn't a technical argument, just a personal preference. So my question is: when will stock Visual Studio come with a W...

Changing the .Text of my MenuStripItems

This code only changes the top menu selectors. private void englishToolStripMenuItem_Click(object sender, EventArgs e) { menuStrip1.Items[0].Text = Languages.English.File; menuStrip1.Items[1].Text = Languages.English.Options; menuStrip1.Items[2].Text = Languages.English.Help; } How can I change the subi...

How to add things to a menustrip programatically?

I want to add whatever is written in a textbox to a menustrip. In the File > Recent Searches thing I have. How can I do programatically? And can I assign an event handler dynamically so that when a user clicks on X item in that subfolder, the text is copied BACK to the textbox? EDIT: How can I programatically call on the folder Busqued...

ToolStrip vs MenuStrip - can I make their rendering identical?

I need to display a toolstrip directly beneath a menustrip in my application, but setting RenderMode = Professional for each does not give identical results. They both show a background gradient, but not the same one. Is there some way to use menustrip rendering for the toolstrip, or vice versa? Or can someone advise how best to impleme...

C# WinForm MenuStrip Event doesn't seem to fire.

Hello.. I don't do much WinFom development so I am not too familiar with the MenuStrip control. I have added a menu strip to my form and added (1) item to it. All of this was done using the designer. So I have Utilities -> Download Utility. When I double click on 'Download' in the designer an event handler is created for me. priva...

Move ToolStripItem down

I have a custom-rendered ToolStrip but the menu items are not where I want them to be. How do I move them down within render's code? You can't change the Bounds property of the items and I don't want to subclass the items ...

"Tool tip" covered by ToolStripItems if they have dropdown items?

In Windows Forms - if the dropdown items of a MenuStrip has tooltips and dropdown items themselves the tooltip will have about a 50% chance of showing up below the ToolStripItems. What is the workaround? To repro you can create the MenuStrip in Visual Studio or just add the following code to a form and then try to hover your mouse over...

Unifying ToolstripButtons and ToolstripMenuItems

Hi, Almost in all cases, ToolStripItems do just what their equivalent MenuStripItem do. In these cases, ToolTip, icon and text of these two commands are the same. So, is there any way (preferably a .net native way) to synchronize and unify these two items? This might be a way to define commands somewhere else and just put them into vari...

Creating a menustrip in WinAPI?

Is there a way to get a menustrip instead of an HMENU when using the WinAPI? Like menus that .Net applications use? Because the HMENU just doesn't fit my color scheme, I need a darker menu. Thanks ...

Closing a MenuStrip programatically

I have a MenuStrip that I have added to a form, and in one of the dropdown menus in it, I have a text box. When I hit enter on the textbox, I want a function to run, then the drop down menu to close. I know how to get the enter part done, but I have no idea how to close the MenuStrip dropdown menu. Does anybody know how to do this? ...

Using a Windows 7 style menustrip in Windows Forms

I am using windows forms and when I use a MenuStrip item, I get something that looks like this: http://imgkk.com/i/ggn1.png Is it possible to use menu strips like the ones the system uses, like in Windows Explorer, or Firefox, for example: http://imgkk.com/i/cxyg.png with Windows Forms, or C# in general? ...