Right Click to shown pop up menu

  • Thread starter Thread starter A-PK
  • Start date Start date
A

A-PK

How to write a right click pop up menu in VB.net like Windows

could someone guide me and give some hints on that.

thank you very much
 
Hello
Add a contextmenu on your form.
To display it , for example over datagrid1.


Point = Me.DataGrid1.PointToClient(Cursor.Position)
Me.ContextMenu1.Show(Me.DataGrid1, Point)

Kind Regards
Jorge
 
* " A-PK said:
How to write a right click pop up menu in VB.net like Windows

Add a ContextMenu to your form and assign it to a control's
'ContextMenu' property.
 
yes...i solved it already

but did you know how to make one frame dynamic ?
meaning that if I open the windows bigger a bit, then one of the frame will
become bigger as well
 
* " A-PK said:
but did you know how to make one frame dynamic ?
meaning that if I open the windows bigger a bit, then one of the frame will
become bigger as well

Did you have a look at the frame's 'Anchor' and 'Dock' properties?
 
yes...i am able to do that : ) thanks Herffied

but i got one more question here...

let say i got 2 form here. A form and B form
how can i restrict B form open under A form's lable or text box object ?

A form is my main form, and i use tree view to list down all menu, when I
click the menu, then B form will be opened, but I want to B form to be
restricted under A form's particular place, let's say on A form's text box,
how could i do it ?

same concept as windows explorer
when you click the tree view on the left pannel, then the data will be shown
in right pannel, i want to do like that. pls guide me

A-PK said:
nope...i did not look at that...
could you provide more hints for me ?
 
Back
Top