Click here to Skip to main content
15,885,141 members
Everything / MenuItem

MenuItem

MenuItem

Great Reads

by vblover Programmer
Load Menu from Resource-Only DLL (created by VC++) and Set for Form As MainMenu by API Functions.
by Steffen Ploetz
The Win32++ class library sample collection does not contain a sample, that creates the frame menu via API instead of via resources. Here is the missing part.
by vblover Programmer
Adding ContextMenu's MenuItem to the SystemMenu of Form in Windows Forms Application
by Prabu ram
A complete automatic generation of menu in ASP.NET MVC using attributes applied on controllers.

Latest Articles

by vblover Programmer
Load Menu from Resource-Only DLL (created by VC++) and Set for Form As MainMenu by API Functions.
by vblover Programmer
Adding ContextMenu's MenuItem to the SystemMenu of Form in Windows Forms Application
by Steffen Ploetz
The Win32++ class library sample collection does not contain a sample, that creates the frame menu via API instead of via resources. Here is the missing part.
by Prabu ram
A complete automatic generation of menu in ASP.NET MVC using attributes applied on controllers.

All Articles

Sort by Score

MenuItem 

5 Jan 2023 by vblover Programmer
Load Menu from Resource-Only DLL (created by VC++) and Set for Form As MainMenu by API Functions.
23 Jan 2020 by Steffen Ploetz
The Win32++ class library sample collection does not contain a sample, that creates the frame menu via API instead of via resources. Here is the missing part.
13 Dec 2022 by vblover Programmer
Adding ContextMenu's MenuItem to the SystemMenu of Form in Windows Forms Application
17 Jun 2014 by Timberbird
I believe it's because MenuItem can only belong to one single parent MenuItem (though I'm not 100% positive - MSDN doesn't mention anything about that in http://msdn.microsoft.com/en-us//library/system.windows.forms.menuitem%28v=vs.110%29.aspx[^], so it requires disassembling to be sure). But...
31 Dec 2018 by W.G.C.
Option Explicit On Option Strict On Option Infer Off Public Class frmDirectoryMenuTest ' This assumes that there is a form with a MenuStrip named ' MenuStrip1 with a ToolStripMenuItem named tsmiRootItem Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim...
9 Jan 2020 by johannesnestler
Hi mateusz_lozo, Your question is nearly two months old. I don't know if you are still interested in this, but I know how to do it. You Need to use ModifyMenu and GetMenuItemID Windows-API Functions and call them per Interop. Here you have an example that shows how to change notpads file...
17 Jun 2014 by thechauvinism
Hi I am trying to create dynamic menu on mouse click, I am able to create Parent menu and Child menu, but I am not able to create subChlid menu. Only the last subChild menu i.e. "OutPut 6" is visible.I am new to C# and I refer Code Project for help. Is this happening because there is only one...
9 Jul 2014 by Bhis
I am trying to add a combobox to ContextMenu on a datagrid when a user right clicks, the menu will pop up. It should show exit and assign to bankID menu options where the bank ID is a combobox dropdown. I did some online search but couldn't find anything close which makes me wonder, it is even...
9 Jul 2014 by OriginalGriff
Um...am I missing something here?If you add a standard ContextMenuStrip to your form, and assign it to the ContextMenuStrip property of your DataGridView, you can add as many combo boxes as you like to the menu just by clicking the down arrow at the right of the "Type Here" box and selecting...
9 Jul 2014 by Bhis
I was able to resolve this myself. I created a ContextMenuStrip, added a MenuItem with sub ComboBox item, populated the ComboBox on ToolStripMenuItem Click event. Then assigned ContextMenuStrip object to its ContextMenuStrip property. After assigning the ContextMenuStrip object to a control, the...
20 Jul 2014 by kelevrax
I have a menu with various level of menuitem. In the first level of the menuitem I can visualize every control on the menuitem, on the second level of menuitem I can't because the menu visualized is a popup and it's not part of the main window visual tree, have you some idea on how can I resolve...
27 Oct 2014 by SRS(The Coder)
Instead of passing first argument to MenuItem constructor as name of the menu you can pass as below to apply h2 header for it :-MenuItem menuItem = new MenuItem("" + row["menu_name"].ToString() + "", row["menu_id"].ToString());This will display it as h2 header.Not sure...
12 Nov 2014 by Bert Goens - HW
Hello, I have a listbox with elements and a contextmenu on it. But I want to display some MenuItems only if there are > 1 items selected in the ListBox. My code is currently this:
12 Nov 2014 by Sergey Alexandrovich Kryukov
You can handle the event System.Windows.Controls.ContextMenu.ContextMenuOpening:http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.contextmenuopening%28v=vs.110%29.aspx[^].In the handler of this event, check up your condition and adjust the visibility of the menu items...
18 Jan 2015 by Fandango68
I have a Web.SiteMap file with several menu items in my web application, such as...
18 Jan 2015 by Fandango68
I've answered my own question.In the TreeView tag, use the DataBound event to loop through the nodes, find the node you want using node.Text, and apply a SPAN tag with style="" to control formatting.ie:protected void Tree_DataBound(object sender, EventArgs e){ try { ...
4 Mar 2015 by Member 11499475
Hey,I'm 14 and trying to figure this out for the last couple of days (im new, please dont judge)I made this image in photoshop and I would like to figure out how to make it HTML and CSS on Codepen. What would the code be for the navigation bar alone? I want to know basically how to...
4 Mar 2015 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
I hope the below ones would help you.1. How to Create Horizontal Navigation With CSS3[^]2. 100 Great CSS Menu Tutorials[^]3. CSS Navigation Bar[^]
26 Apr 2015 by All Time Programming
Hello, In my Web application, In my Site.Master page I have a menu and want to have a horizontal Sub-Menu on click of the menu. Below is my div of navbar.
24 Nov 2015 by BlackCanary
I have used asp:Menu and Asp:multiview to create the tabs .It worked well but the tab items are look like a single line of sentence since they are horizontally aligned. eg: Tab1Tab2Tab3Tab4I would like to modify this tab items to look like the following tabsTab1|Tab2|Tab3|Tab4I...
24 Nov 2015 by Krunal Rohit
Assuming you're using ] for tab header. Give each tag css class .tab-headerli.tab-header{ padding: 7px 15px; border-right: solid 1px #444;}li.tab-header:last-child{ border-left: none;}-KR
19 Jan 2016 by Member 10774223
Hi all,In our current system (using Visual FoxPro), we populate Menu of the system dynamically by retrieving source data from database.We will stored the Menu Name, Code, sorting order, hierarchy or whatsoever in a table in SQL server database, retrieve them during system initialisation...
21 Jan 2016 by najmbe
I would create an interface with all the options I have in the db , and assign it during runtime based on chosen command.
16 Feb 2016 by gani7787
Hi,I am using ASP.Net Menu Site map path. I have created menu using site map path and it is highlighting selected menu works perfectly in local machine.But, the same code when i hosted in server the selected highlighting menu will not appear.pls. give suggestion...below is my...
21 Feb 2016 by gani7787
Hi,Good Morning.I used site map with role based authentication. When pass role value the menu will not be displaying.but, when i hard code the particular role then it will work.Working codeDim arr As String() = {"Stu"}HttpContext.Current.User = New...
21 Feb 2016 by gani7787
Thanks for Excellent clues...i used char instead of varchar..it occupies two additional empty spaces..now i changed to varchar.Now its working.Thanks for your valuable solution.
19 Jun 2016 by Derek Kennard
Hello Developers, I have a problem with a WPF/C# menu item. I want to make the menu items populate from a SQL database. I have the following code. I'm likely missing somehting in the XAML to bind the data from the database to the window, but let's see what you think. C# Snippetconst...
19 Jun 2016 by Derek Kennard
I solved my own problem. I decided to go the array route. public class Items { public string Col1 { get; set; } public string Col2 { get; set; } } try { Items[] items = null; conn.Open(); using (var...
27 Oct 2016 by Kasthuri Gunabalasingam
I have to do a WPF Application,which need to contain menu bar. When user click every menu item , window should be loaded with different contents. please any one suggest any ideas to accomplish this.What I have tried:
6 Feb 2018 by Jayanta Modak
Sir Please help me about MenuStrip Control used. I create a project there one parents form and two child form MenuStripControl-1 is on parents form (main_form) Menu Item name a) Trans. b)Report c) Setting and MenuStripControl-2 is on child form (purchase_Entry_Form) Menu Item name a) File....
6 Feb 2018 by Maciej Los
I'd strongly recommend to read article provided by Richard Deeming[^]: Walkthrough: Creating an MDI Form with Menu Merging and ToolStrip Controls | Microsoft Docs[^] Then, check another resources: How to: Hide ToolStripMenuItems | Microsoft Docs[^] How to: Disable ToolStripMenuItems | Microsoft...
31 Dec 2018 by LeMS_Studios
I am trying to create a menu that creates new menu items for each Directory and files in a specific directory. Each menu item that are files will open the corresponding file. This will be similar to the Windows Start Menu. What I have tried: So far I have the following code: Dim lst As New...
26 Mar 2019 by Member 14171287
Start Bootstrap Dashboard Shortcuts Overview ...
26 Mar 2019 by Vincent Maverick Durano
You haven't set any bootstrap css in your ASP Menu Control. Check this article to get started: Responsive ASP.NET Menu Control With Twitter Bootstrap - TechBrij[^]
9 Jan 2020 by mateusz_lozo
I am trying to make an application that will edit the Menu item (with a submenu item) in the external application. I am currently carrying out tests on a notepad. img[^] What I have tried: The commented part of the code is unfortunately not working... using System; using...
9 Feb 2021 by nik2
Hey all, I wanted to change the text of my existing header menu on my site. Is there any way that this can be done so that when you hover over a menu item, the text changes? I want to make sure that I'll be able to use the existing menu that I...
9 Feb 2021 by Luc Pattyn
Hi, I would consider adding another HTMLelement automatically (use CSS "after") and have it invisible when not hovered. Then switch both visibilities when hovered. My CSS is a bit rusty, I won't engage in any actual code here. :)
12 Dec 2021 by Donny Hardo
I would like to add password security to a specific menu in my WPF application. I've made an InputBox appear when the menu is clicked, but when the password is entered, the menu is still closed. I feel like I'm missing a method to...
9 Jan 2022 by Errious Nope
I work with the project management system app https://www.rukovoditel.net/ which works with Bootstrap 3 and it has a build in access and role management for users. In configuration it is possible to hide menu items based on user roles, the...
15 Oct 2016 by Prabu ram
A complete automatic generation of menu in ASP.NET MVC using attributes applied on controllers.
12 Dec 2021 by #realJSOP
IMHO, you should have the user log in to the app, and then configure/establish program features based on that user's role(s). That way, you don't need custom menu/event handling, because everything presented to the user is available to that user....
21 Mar 2014 by Agent__007
I am trying to bind an InputGesture to a RoutedCommand bound to a MenuItem inside a ContextMenu. As shown below, I am trying to bind a KeyGesture to "Language->English/England" MenuItem where "Language" is a Button and "English/England" is a MenuItem inside the ContextMenu of "Language"...
27 Oct 2014 by omidba
Hi too allHow can I add title to all links of menu that create with this code on c# ?and the title I need is menu name and can I add h2 property to all link? if your answer is yes so please help me to do this. DataTable table = new DataTable(); string strCon =...
31 Jan 2015 by Member 11417916
I'm losing my mind over this small problem. I'm trying to decrease the margin or padding around the menustrip text but can not seem to figure it out, or maybe it's not possible. What I have is a menustrip which is 24 in height and a label which has the same font and font size as the menustrip...
23 Feb 2015 by Member 11473886
The menu should be able to get items from either a text file that is created in a specific format or better from a .csv Excel file.
11 Jun 2015 by Tom Paronis
Hello. I'm having trouble putting a menu into an .fxml file. Every example I see does it programatically but I'm trying to declare it in the controller and then wire it up in the .fxml file. In fact, this seems to be a general problem with javaFX; some of the examples are programmatic and...
14 Jun 2015 by Member 11765517
Department Featured xxxxxxx xxxxxxxxxx xxxxxxxxxxxxxx xxxxxxxxxx
21 Jun 2015 by Member 11772633
Here is the jsfiddle code of my project http://jsfiddle.net/chintu/wmv1jkh9/[^] I want to create a drop down menu for fumehoods and furniture section.
29 Sep 2017 by Satyanand Bhardwaj
Create A Multi-Level Drop Down Menu with Pure CSS - CSS Script[^] Pure CSS multilevel dropdown menu[^] Multilevel Dropdown Menu with Pure CSS[^] try this link very helpful
12 Dec 2021 by Donny Hardo
I found this article: Show menu programmatically in WPF - Stack Overflow[^] And have modified my code a bit.. It is still not working as I'd like. I need to sort out the order of event firing, but this might work Private Sub...