How To Create A Pop-up Menu
Mar 19, 2010i 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
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
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].....................................
How can I create a popup menu in vb 2008 for use as a context sensitive menu for when I right-click?
View 2 RepliesI 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?
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 Replieshow to create flash menu in vb.net
View 1 RepliesCan 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.
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.
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]...
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 Repliesis 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 RepliesI want to know the steps to create a menu bar.
View 2 RepliesI 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 RepliesI 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 RepliesI'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'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 Repliesi 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 Repliesi 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?
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 RepliesI'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]...
I am looking to create a menu system in vb 2010 windows app. See attached file to give you an idea of what I want to achieve. I could do it by creating 4 buttons and have 4 panels. when button one is pressed make panel one visible and hide other 3 panels, etc This just seems messy. Will any of the built in VB menu components do this?
View 4 RepliesI would like to create a sub menu that list part numbers that are gathered from a xml file. I am having trouble with creating the sub routines for the part numbers menus because it can change.
Private Sub mnuP1Layers_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim BFFile as string
My.Computer.FileSystem.MoveFile(BFFile, "C:ExchangePrintedBFFile")
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
I've read many articles on how to create transparent labels but it seems to me that my particular case is not covered. Very simply I have a label placed in the upper right part of the form, which in fact is part of the menu strip. The label displays some info to the user but I wish it were transparent. I've tried various methods including
lblAct.Parent = mnuMain '(or Me)
lblAct.BackColor = Color.Transparent
lblAct.BringToFront()
But cant get it to work. How I can make that label in that position transparent?
Why is it that when I close the application that I've made, it is still seen as running in the background in task manager? I open my forms using the .show() method, and when I need to close them programmatically, I use .dispose().
View 2 RepliesI am trying to create menu in my form in VB.net 2010 as radioCheck but I can not find it in the properties window to make it true. Is it different from previous versions?
View 2 Repliesexample how to create a right click on selected node in tree view..example
parentNode = mdiform
childnode1 = child form1
childnode2 = chile form2
which ever i select a different node a corresponding form will appear with a mouseup event.
i must choose first a node to view my contextmenu.
I am trying to create a tuturial within my software in vb.net. The code will take the current mouse position, move it over the relevant menu header (e.g. file) and click, move to relevant item (e.g. New) and click etc.
View 2 Repliesi am trying to create a kind of calculator for fuel usage with menus lemme show ya the code:
Public Class frmFuelCalc
Private Sub AboutFuelCalcToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutFuelCalcToolStripMenuItem.Click
MsgBox("Guru Software" & vbCrLf & "Fuel Calculator Version 1.0.0.0" & vbCrLf & " Copyright 2011 © " & vbCrLf & " Guru Software Design â„¢ All Right Reserved", MsgBoxStyle.Information, "Fuel Calculator")
[code]....
I recently downloaded VB2008 express. Iam trying to create a link to an SQL table, but the LINQ to SQL class is missing in my add new item menu. is there another way to grab data from a database without using the LINQ to SQL?
View 1 Replies