pop up menu

yyonaim

Newcomer
Joined
Apr 19, 2003
Messages
4
hello, i am an extreme newbie to vb.net

in vb6 there was a command:

popupmenu(mnuName)

how can i perform the same operation in vb.net

i am trying to make a popupmenu when i right click on a filebox

thanks for your help............... peace out
 
First you create a popupmenu from the toolbox then click on your filebox and from the properties window change the ContexMenu to whatever ContexMenu you want to use for that object.
 
this is what i am looking at:

Private Sub File1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles File1.MouseDown
If e.Button = MouseButtons.Right Then
'what do i put here
End If
End Sub
 
Back
Top