hi guys can any one pls help me with this thanks
Im using vb.nwt 2010
I wanted to create a context menu that shows another context menu when the item is clicked
I already have the running code for the first context menu but im lost at showing another context menu within the first one
thanks any help will be appriciated
If what you are asking is 'Can I create a sub menu on a context menu in the same way that a standard menu has one (as per my illustration)?' then the answer is yes. Just use the ContextMenuStrip control which you can find under the Menus & Toolbars strip in the toolbox panel in visual studio.
Set up the context menu the way that you wish it to be and then assign that context menu as the context menu of whichever control you want to invoke it at runtime.
Related
I'm not sure if this is at all possible, but I'd like to be able to 'embed' a CommandBar into an Access 2003 Form.
I'd like to do this because the nature of my application is such that its forms are 'floating' so it doesn't look like it was developed in Access.
I know I can put Command Buttons on the form, which would achieve something similar, but I'd like a way to differentiate between the two types of buttons.
I'll be using it (if it's possible) to have a help menu present on some Forms.
Any ideas would be greatly appriciated!
I managed to achieve a similar effect by placing labels of a different color at the top of the form, then assign custom context menus to appear on left click. This is similar to the code found here:
How to add a menu item to the default right click context menu
I'm using controls from DevExpress to develop desktop application in VB.NET. Now, I want to add context menu also from DevExpress. But I cannot find such control in toolbox. Is it missing only in my version or DevExpress has not developed such context menu yet?
Thank you in advance
The XtraBars Suite allows you to create multi-purpose popup menus.
These menus can be used as dropdown lists for toolbar or ribbon buttons
http://www.devexpress.com/Products/NET/Controls/WinForms/Bars/context_menu.xml
also
http://documentation.devexpress.com/#WPF/CustomDocument6587
Is it possible to make collapsible task panes in outlook. ie. Can I have a button on lets say a ribbon that upon clicking can either make the pane appear, or if it is already open make is collapse or disappear? Everything I've been able to find related to this involves add-in express, which I do not have. Any help or leads would be greatly appreciated.
Add-In Express is not required to show or hide a custom task pane. You can toggle the Custom Task Pane visibility by using the TaskPane.Visible property.
customTaskPane.Visible = false; // hides task pane from view
See Custom Task Panes on MSDN for further reference, specifically the section "Modifying the Appearance of the Task Pane"
I have a program which runs mainly though a NotifyIcon in the bottum right of my windows screen (XP). Whenever I open the ContextMenuStrip that appears when the icon is right clicked, a box also appears in the task bar. I also have nested menus inside the menu (mouse over one item leads to another menu), and each additional menu also creates a taskbar box upon appearing. So once I am at the third or fourth nested menu, there would be 3 or 4 windows appearing in the taskbar. After the menu disapears, so do the windows in the taskbar.
How can I stop the taskbar from displaying boxes to represent these menus? I have done nothing in my code as far as I know to create this type of behavior. I have searched for similar problems but have found nothing similar. There is no "showintaskbar" property for these items as far as I can see, and no other property that I can find which would affect this. I have investigated the owner of the contextmenustrip since I read the owner may effect these type of behaviors, but that doesnt seem to be helpful as there isn't an owner property of the contextmenustrip.
I don't know what else to search for, so I am here hoping someone can give me a clue as to what else may effect this type of behavior.
Any help is greatly appreciated. Thank you!
If you are using the ContextMenuStrip.Show() method, it will display in the taskbar as you describe. Try assigning your menu to the NotifyIcon.ContextMenuStrip property instead.
One question is : Now I want to add a new Menu at the end of MenuBar, not to add a menuitem at the known menu. just like the Xcode Items: The last menu is Help , I want to add a new Mneu(MyMenu) behind the Help Menu ? How to do ? Thanks very much!
Generally, you should not add or remove items in the main menu at run time, because it breaks your users' muscle memory. Enable or disable them instead, and you'll have a much better UI.
Assuming you've found a good reason to do this, the way to do it is to get the main menu from the shared NSApplication object, then insert the menu item for your new menu. The menu item's submenu is the actual menu you're inserting. (Of course, you can create the menu and menu item in IB and access the menu item through an outlet.)