In my VB6 program I have a Grid control, and when I right click on the grid,
I will show a pop up menu.
In VB.NET 2003 how can I show a pop up menu on a control ?
This is the code from VB6
Private Sub TDBGridWorking_MouseDown(Button As Integer, Shift As Integer, X
As Single, Y As Single)
If Button = 2 Then
frmDesk.PopupMenu mnuedit
End If
End Sub 2 5311
On Jun 9, 9:51 am, "fniles" <fni...@pfmail.comwrote:
In my VB6 program I have a Grid control, and when I right click on the grid,
I will show a pop up menu.
In VB.NET 2003 how can I show a pop up menu on a control ?
This is the code from VB6
Private Sub TDBGridWorking_MouseDown(Button As Integer, Shift As Integer, X
As Single, Y As Single)
If Button = 2 Then
frmDesk.PopupMenu mnuedit
End If
End Sub
You create a ContextMenuStrip and then set it as the value of the
control's ContextMenuStrip property.
Thanks,
Seth Rowe
"fniles" <fn****@pfmail.comwrote in message
news:eC****************@TK2MSFTNGP04.phx.gbl...
In my VB6 program I have a Grid control, and when I right click on the
grid, I will show a pop up menu.
In VB.NET 2003 how can I show a pop up menu on a control ?
This is the code from VB6
Private Sub TDBGridWorking_MouseDown(Button As Integer, Shift As Integer,
X As Single, Y As Single)
If Button = 2 Then
frmDesk.PopupMenu mnuedit
End If
End Sub
The form as a Context Menu Strip. The other controls have Context Menu as
well. http://www.codeproject.com/vb/net/ContextMenuVBNET.asp
Anything you're thinking about doing, the Code Project has it, my examples
tool of choice. :) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: cefrancke |
last post by:
I have set the Startup properties to the following...
All menus, toolbars, etc are turned off plus these are unchecked
Allow Full Menus
Allow Built-in Toolbars
Allow Default Shortcut Menus...
|
by: Sakharam Phapale |
last post by:
Hi All,
How to show dropdown list of menu items just like click on Parent menu.
For example,
Edit (Parent menu)
Cut (child menu)
Copy (child menu)
Paste (child menu)
|
by: Larry Serflaten |
last post by:
I'd like to have a button on my form that will show a
menu from the user's Programs tree (off the Start button).
I want it to be the same menu the user sees when they
traverse their own Programs...
|
by: mike |
last post by:
asp.net 2.0 provide us menu control or tree control
that's why i'm gonna use this control to display sub menu.
when i click root menu on top of my website i'd like to show sub menu of
root menu....
|
by: Andrew |
last post by:
Hello, friends,
We created a drop-down menu bar and a show/hide calendar web user controls
mainly using javaScript and html.
However, they both have the problem that they are not dispaly as...
| |
by: Agnes |
last post by:
I got a login form . When user input the correct password, the Main menu
will be shown.Everything works under .net 2003.
however, after complie under 2005, Same program runs, the main menu didn't...
|
by: proplady |
last post by:
I've had this menu for some time, and periodically make changes.
I've made some changes now (just some menu items), and the menu will not show up on my webpages.
I know it's something simple,...
|
by: daydream |
last post by:
yeah i need some help(such a common line) ,i have a menu and each link has its own div respectively and yeah obviously when u click the link the div shows, the problem is i would like each div to...
|
by: jerrydigital |
last post by:
good evening,
I am trying to allow my users to enter in text if they don't find their option on my drop down menu. In the code below, I can get a text box to show up when I select 'Other' on the...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |