Create A Menu For A Combo Box Or Text Box?
Jan 11, 2009
I want to create a menu for a combo box or text box that when the user will click (RIGHT click) the menu will appear. Just like in windows desktop. how to create this menu and in which event of the control should I write the code?
View 1 Replies
ADVERTISEMENT
Mar 1, 2009
Attached is the image from an Office application, how can we emulate such?
View 6 Replies
Mar 14, 2009
I have a menu and I want to add video files inside the menu without recreate the EXE file each time I add a video
Let say the menu called videos And I want to add submenus called video 1, video2 and so on
So all I have to do to add the new video file in the program folder and edit the text file to see the new video when the program run
View 4 Replies
Aug 23, 2011
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)
[CODE].....................................
View 2 Replies
Feb 21, 2012
How to use a databound combo box to display one field in the drop down, and another as the combo box text on roll up? Using VS 2005... For example, I have a datatable that has 2 fields. One called "ShortDesc" and one called "LongDesc". I want to be able to see the "LongDesc" column values in the drop down on the combo box. When I make a selection, I want the text in the combo box to read the corresponding "ShortDesc" value.
[Code]...
View 4 Replies
Aug 27, 2009
I want to avoid paste operation in combox box control. to suppress the system context menu for copy and paste, I did following steps1) Create a empty new context menu (just drag drop new context menu on the form)
2) Assigned newly created empty ContextMenuStrip to combo box ContextMenuStrip property. Is it the right way to avoid right click system context menu? is there any other way to do so?
View 4 Replies
Nov 3, 2010
So as the name states; I am a newer coder.
This is the code i have:
Public Sub RandomNumbers()
Dim s(4) As String
Dim RandomNumber As Byte
I don't know if you can tell what I am trying to do here, so I will try to explain. I what to create for random numbers and place them into for different text boxes. I also would like to do this with combo boxes and their selected indexes. So if the combo box has 10 items in it; the new selected index would be the random number generated above.
View 5 Replies
Nov 20, 2010
I need to to able to save multiple text-boxes and a combo-box to a text file. the thing is, when I go to save, I check out the .txt file manually and its saved all in one line, no spaces. when I go to "read" it with the 2nd part (<-----this is a 2 part Challenge) it even reads all from that one line in the text file. What i'm asking is how can I make my text-boxes saved in the text file on different lines. [Code]
View 10 Replies
Mar 19, 2010
i created a label and i added some text to it
i want to know how to create a pop-up menu with items
and how to add it to this label
View 1 Replies
Nov 12, 2009
How can I create a popup menu in vb 2008 for use as a context sensitive menu for when I right-click?
View 2 Replies
May 20, 2009
I want to create an application, that has a menu. Every menu option represents an action a user can choose. For some actions the user has to input a date and a string. For others the user has to choose from a list, and then some results are presented in a datagridview depending on his selection. Some actions mean that the user has to check some check boxes. etc. So there are quite a few controls needed in this application, and they cannot all be on the screen in the same time (obviously).I don't know how to design this:
-should I make a single form with all the needed controls in it and depending on the action the user selects some become visible and some hidden?
-should I design a form for every action he chooses and the forms become visible or hidden depending on the action the user chooses?
View 3 Replies
Dec 9, 2011
How do I create an 'edit Menu'? I am trying to delete bookmarks. I have learned that to do so I must put an edit menu symbol on the tool bar and then do an "edit menu / bookmarks / toggle, clear, add, ..." but I can't find an edit menu on the tool bar and have been unsuccessful trying to create one.
View 8 Replies
Nov 27, 2009
how to create flash menu in vb.net
View 1 Replies
Jan 13, 2009
I am trying to create a combo box that would display data from a dataset, and also a 'Please Select' as the first item. I have written the following code which derives from a combo box and it works fine in visual studio 2003 but in 2008 would not display the comboboxtext (which is 'Please select').
Public Class DoubleDataSourceCombo
Inherits ComboBox
Dim myDataTable As DataTable
[Code]....
View 4 Replies
Apr 17, 2012
I'm trying to create a multi column combo box in VB.net.[url]...
It just does not like the class="MSONormal" statement at the beginning.
View 4 Replies
May 3, 2012
First i am pretty new to coding and everything so yeah...I wish to make a distance and fuel calculator as my project. Included will be multiple combo boxes with different sets of information (The manufacturer of the vehicle, model of vehicle, the vehicles fuel use per 100Km, its transmission type, users choice of where they will depart from and arrive etc.) Is it possible to achieve this without using a lot of combo boxes? I've experimented using if statements for example:
if combobox1.selected item = "Holden" then
combobox2.visible = true (it's bad i know)
Then from this they would choose their model type in another combo box and then choose their transmission type etc..I don't want to use this because then it will mean i will have to do it for each and every combo box for each and every different set of data because making one 'visible = true' i will have to make the other 'visible = false' and this will cause problems when i start adding a lot onto it.
View 11 Replies
Jan 2, 2012
Can I create a control that has 2 menu's characteristic:
Do not take form's focus on clicking. Automically disappear when clicking outside.
I intend to draw it manually, but I realise I can't draw outside of form's border like system menu.
View 2 Replies
Jun 27, 2012
im trying to create a context menu for images i created dynamically. My context menu doesnt show
Private Sub MyPicClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs)
If e.Button = Windows.Forms.MouseButtons.Right Then
[Code]....
Ive create the pictures dynamically, ive added a handler for click event (shown above), i detect the right click ok and assign another handle for the click of the item.
View 6 Replies
Dec 21, 2010
I am trying to create a context menu that will only appear over a grid but I am having difficulty. Below is what I've tried ( was also declared at the form level but did not make a difference):
[Code]...
View 3 Replies
Oct 16, 2009
I have one navigational toolbar that will allow me to click from one record to another. I am supposed to also have a navigation menu that does the same thing. I have found no information in my book that works on this. Is there a better place to find this type of information?
View 1 Replies
Apr 18, 2009
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..
View 6 Replies
Nov 16, 2009
I want to know the steps to create a menu bar.
View 2 Replies
Mar 14, 2011
I want to create a right click menu on a webpage that posts back so I can redirect to appropriate page with querystring values
View 4 Replies
Nov 15, 2008
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:
View 3 Replies
Oct 13, 2011
I'd like to write a GUI for a command-line application, and add that GUI application into Windows Explorer's context menu to provide a few commands la 7zip[url]...
View 4 Replies
Jun 26, 2009
i have 9 different picture boxes and one context menu assigned to all the 9, this is so because the functionality of the context menu remains the same except to display which picture box was selected
View 1 Replies
Mar 31, 2010
i have various options in my app, some complex some not, these 2 save on application exit and reload on application start themes, and layouts. There selected via a comobox each.So onto the question, how does everyone create options menus? With out using a menustrip/toolstrip?
The method i was using , was to have a picture box show a panel when it was clicked on, the panel had all the various options etc on it. This idea worked great, but meant working in design mode was a pain because the panel and everything on it had to be moved round to see the items under it on the form.
So today i decided to see what other ways i can implement a menu, and i changed it so the picturebox/button now opens a dialog, and all the options etc are on that dialog, this works great except options such as the combobox 1 and combobox2 last used setting (text data binding) doesn't load when the application is started, they only load when you go into the options. Which defeats the point, if a users going into the options just to load the settings its useless them been saved.
The time to initialize the dialog (for it to appear and be click able) is 5 - 15 seconds, not alot i know but the 1st method of using a panel it initializes instantly, but then its never really closed just made hidden, so i uses more system resources.So how does every one else implement there options menu?
View 6 Replies
Aug 18, 2009
I have a form that uses a binding navigator. I want to be able to set a default value to a combo box when I create a new record using the + button on the navigator. Does anyone have any experience with this?
View 10 Replies
Feb 5, 2011
how to create a context menu in a rich-Textbox. I want Cut, Copy, Paste options when I right click on the rich-text-box
View 2 Replies
Dec 17, 2010
I'm creating a program for school coursework which serves as an online ordering system for a local carry-out. I need to create a menu interface which displays all the items, where the user clicks on their choice, enters the quantity desired and then its added to a list box.
[Code]...
View 2 Replies