473,480 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to show Pop up menu ?

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
Jun 12 '07 #1
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

Jun 12 '07 #2

"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. :)
Jun 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
11257
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...
1
2125
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)
0
1122
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...
2
3018
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....
8
2470
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...
3
1106
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...
1
1987
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,...
21
2351
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...
3
4740
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...
0
7050
Oralloy
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,...
0
7091
jinu1996
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...
1
6743
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...
0
5344
agi2029
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,...
0
4488
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...
0
2988
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1303
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 ...
1
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
185
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.