Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Right Click on a Grid

Status
Not open for further replies.

gcarolan

Programmer
Jun 18, 2002
36
IE
Hi,

How do I right click on a grid to bring up a pop-up menu. Any help would be appreciated.

Thanks
gcarolan
 
first using the menu editor define the menu for the form..
hide the menu..

in the grids mouse down event
if Mousebutton=2 then
popup menuname
end if

Mouse button is the variable that comes in the arguement (i dont have vb with me know to check it)...


Known is handfull, Unknown is worldfull
 
Thanks for your reply

popup is giving me the error sub or function not defined. What do you think is wrong?
 
change
Code:
 popup menuname
to
Code:
 popupmenu menuname

and it will work!

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
oops sorry i overlooked that...

Known is handfull, Unknown is worldfull
 
>oops sorry i overlooked that...

It happens, doesn't it!

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Thanks both of ye for all the help, its working perfectly

gcarolan
 
To continue this problem...
When I click a choice in the popup menu I want to display a dialog form.
How do I position the dialog (left, top) to where the popup menu was?
Both the popup menu and the mousepointer varies according to row and column in the grid.

[elephant2]
graabein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top