is it possible to have a drop down menu from a button, somewhat similar to windows right click on a file, except, click/double click a button. if you do answer, can you provide a sample code, let's say, option1 (on the drop down menu) get's text to change to bold, option 2 to italic, and so on..
I have created user control for menu bar and loading in Master page. User control has Link buttons. Now I want create drop down menu for one of Link buttons. I dont know, how to do that? Is there any other control that supports?
ok, i've been able to figure out that i can add a button to a menubar (like the file edit view, ones at the top of most programs) and so far i have figured out:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click form1.MenuStrip1.Items.Add(TextBox1.Text)
I'm trying to create an autorun menu with several button, each button must load a different exe file. This Autorun menu will be for a cd or dvd. and start up when you insert the cd or dvd.
I Used this code: shell "C:wmpwmpinstall.exe (just a example file)
But the problem is I want to put wmpinstall.exe on the cd to. and open it from there.
How to make the file location to the Cd-rom drive. because cd-rom drive can be D: or E: to Z:
I have currently changed the color of background Menustrip using this code
[Code]...
How do i change the Hover color of menu items and dropdown menu items to orange including the background color which holds icons in menustrip dropdown.....
I'm trying to make a user control similar to the Windows Vista/7 breadcrumb bar used in windows explorer. However, when I show the drop down menu for a breadcrumb with many sub items, I get a very long list that sometimes exceeds the screen size. In the Windows Vista/7 example however, there are a maximum of 18 items displayed at a time and a scrollbar appears at the right when the number of sub items exceeds this number (18).
I am trying to build a program that has a Dropdown menu (Combobox) where you select between a list of items like
xbox ps2 ps3 wii
then once you select one of the options the program will bring you to a new window (In the same window) with a new box that has a list depending on which word you chose earlier. As an example.
If you chose xbox on the first window it will bring you to a window with a new list like
fighting game 2009 fighting game 2010 fighting game 2011
then if you select fighting game 2011 you would get another window that showed a list that had a list of characters from that game.
Guy One Funny Hat Guy Big Nose Guy Dead Guy Beast Thing Funny Turtle Thing
Then in the new window you get a selection of options for the character you selected.
Special Skills Combo Moves Unlockable Content
Then if you select one of those you get a new window that has the lists. for example.
If you chose Special Skills show the list of special skills like the following.
Uppercut: Down + Y Face Smasher: Back, Forward, B
and maybe beside the list of moves it could display an image of a Screen shot that shows the move (Or not if it is too complicated).
I decided to make a small app that runs another app with arguments. I think the best way to do it was selecting one option from a dropdown menu and using this option as an argument to run the app.
The clean part I did: Public Class LanguageSelectDialog Private Sub LanguageSelectDialog_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub
[Code]....
Since I'm just trying out, I've made an blank app just for testing purposes. What I need to do in order to pass the selected option as argument? I'm using VisualStudio 2010.
My latest project is to write an app that has a drop-down menu where I can choose different office locations. Once a choice is made I want a handful of different buttons which would vary between location choice. When a button is clicked it will install a printer. I've got the button and install part down but don't know where to start with the dropdown and showing different options upon choice.
I have two drop down boxes in my program. When you select an item from the first drop down, it populates select-able items in the second. When I select something in the second and then change the selection in the first one, the values remain in the second. How do I "reset" the second drop down when the first is changed?
I would like to populate a drop down list using values from the database. I would like to know how I can add to the dropdown list both the display member and value member straight all from the database
Display Name: Account_Name Member Value: Account_ID
I see a bunch of solutions about editing the template, but seeing as how my gridview changes between 10 different datasources a template isn't possible. how I can accomplish this?
I want to have a drop down menu with the values: Year 7 Year 8 Year 9 And I want to display different tables for each the values selected in the drop down menu. For example, when the "Year 7" value is selected in the drop down menu, a table is displayed for that year.
I have a ListBox1, a Button1 and a DataGridView1 How can I achieve, than everytime I push the Button1, the items from ListBox1 will also reveal in the DataGridViewComboBoxColumn's dropdown menu.... I'm using Visual Studio 2010.
I have a menu strip in a form. What I want to do is when I hover my mouse over the menu it should drop down and show the menu without clicking. I am trying to call the click event of menustrip in mouse hover event of menu, but to no avail.
I have on my form load to add items to a menu as a dropdown item.from within the same sub I try to output the menustrip dropdown items in a msgbox but I get a blank response for all my items.
Private Sub PopulateLoadChildMenu() msItemLoad.DropDownItems.Clear() Dim fi As FileInfo
I have my program set up to read the contents of a Directory, and then populate a drop down menu with the names of the files in the directory. (I am using the MenuStrip). Inside my program, it is also set up to create a new file in that directory, and I wish to add this item to the dropdown menu upon creation. The list is entirely created and populated from the code, and the contents of the list depend entirely on what's in the directory.
I have tried using MenuStrip.Items.Remove(menuItem1). Now, when this command gets executed, it does remove the top level Menu, however when I go to repopulate the menu, I end up with duplicates of my files listed in the drop down. I am stuck with how to clear these out as well?
How do I remove the area in a dropdown menu where the menu item icons are typically displayed?
I just need to remove the grey area in this particular dropdown, other dropdowns of menu items in the same menu bar need to retain this area because they do have icons.
I have a toolstrip along the top of my program. There is a right aligned drop down button that displays a menu. I have a 2 monitor system, and for some reason, the menu wants to open up on the other screen - the screen the program isn't on. How can I keep this menu on the proper screen?
I am developing an application in visual basic 2008. I want to populate a drop down list onthe fly with values extracted from the database. I want both the displayed and value items to come from the same.
What control should i use if i want a button with default text on it and when i press on it, it give a drop down menu that i can select different commands. I tried a combobox which seems to be very close to what i want. i set the dropdownstyle to dropdownlist so it looks like a button. but i cant seem to set a default text on the box and i dont want this text to be in the item list. also when i set the dropdownwidth to a value larger than the combobox width, it will align left.
I am wanting to create a menu based on items in my MS SQL database i have 3 tables
FormTbl
FormID - Int Eg (1)
FormName - nvarchar(50) Eg (Form1)
[CODE]...................
I can get the form names to be populated in to the menu and can open it my question is how do i set where the menu items will be placed. Eg File with FormHierarch 0 will be the very first one. Exit with FormHierarch 0.1 will be the very first one under File
Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim menu As New MenuStrip() Dim dst As DataTable = User.MenuItems(Me.ToolStripStatusLabel1.Text)
I have the following linq statement to go through a dropdown menu's sub items and get what items are checked: vb Dim UnselectedItems = From xItem As ToolStripMenuItem In tsiSelectObjects.DropDownItems Where TypeOf xItem Is ToolStripMenuItem AndAlso CType(xItem, ToolStripMenuItem).Checked = False
I get this error tho: Unable to cast object of type 'System.Windows.Forms.ToolStripSeparator' to type 'System.Windows.Forms.ToolStripMenuItem'. As you can probably guess i have ToolStripMenuItems and separators in there
However the AndAlso should short circuit in the case where the item is not a ToolStripMenuItem and it doesn't seem to be doing so (as TypeOf xItem Is ToolStripMenuItem=false in this case)?
I am creating a VBA application using Excel 2007 and would like to make virtually all of the standard Office and Excel menus invisible to the user and present to the user only my custom menu controls. I have been successful in doing this for all objects on the Ribbon as well as those on the Microsoft Office Button Menu, with the exception of the "recently opened files list" box, that also has the "Excel Options" and "Exit Excel" buttons on it. Can anyone tell me the name of the object for this control so that I can make it invisible?
Here is the relevant snipit of XML code that is in my CustomUI.xml file: