Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Right+Click menu in VB .NET ?


ghost's Avatar
0 0

Ok I need to code have a right+click menu when I click a button, but I have no clue on how to do that…

It's for school and I need help!

Oh and yes I googled :P.

I tried the Context Menu option, but quite frankly, I really don't know how to use it :(.

PS. I use Visual Basic .NET 2003, because that's what we have at my school.


ghost's Avatar
0 0

It's impossible, rofl.


ghost's Avatar
0 0

ah crap ok I give up then…

Thanks for help tho


ghost's Avatar
0 0

it is posible. i've seen it in a libery book (and yes it was about visual basic.net) i've you realy want to know i'll go and look it up for you tomorrow.


ghost's Avatar
0 0

I don't understand what you mean, but if you mean like a File menu, then you can just create a resource file and create your menu that way.


ghost's Avatar
0 0

Use a context menu. Then add handlers for every menu option.

You can do this by clicking the ContextMenu1 in the component bar. You'll notice a bar appearing like a meunu bar. You can edit all the menu options the same way as a menu bar ;)

To assign a contextmenu to an object, simply drag it upon the desired object. Easy, no? :p

I hope I didn't made any mistakes, it's been a while since I last used VB and context menus.


ghost's Avatar
0 0

Cynoxx_ wrote: ah crap ok I give up then…

Thanks for help tho

lol You will never be a programmer.