cdoverlaw Posted October 12, 2003 Posted October 12, 2003 hi how do i add things to a right click menu in my visual basic .net app Quote
cdoverlaw Posted October 12, 2003 Author Posted October 12, 2003 i aint added one, i need to know how to add one to Quote
Administrators PlausiblyDamp Posted October 12, 2003 Administrators Posted October 12, 2003 On the toolbox you should have a Context Menu control. Add it to a form and if you click on it you can design the menu like a normal menu. Go to the control you want to have the menu and it shoul have a property called 'Context Menu'. Select the one from the drop down list. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
cdoverlaw Posted October 12, 2003 Author Posted October 12, 2003 hmm i aint used normal menus in .net before (i have in vb6) so i need more description (as wot i tried aint working) Quote
Administrators PlausiblyDamp Posted October 12, 2003 Administrators Posted October 12, 2003 Have you added the Context Menu to the form? If so when it's selected on the form where a menu would normaly go you should see an empty menu bar and the text 'Type here' or similar. Just type the menu items into the list. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
cdoverlaw Posted October 12, 2003 Author Posted October 12, 2003 (edited) i did that but when i right click in my program when its executed i dont get a right click menu showing when i right click, (nothing happens when i right click) Edited October 12, 2003 by cdoverlaw Quote
*Experts* mutant Posted October 12, 2003 *Experts* Posted October 12, 2003 Are you sure you set the Context Menu property for your from to your Context Menu object you created? Quote
cdoverlaw Posted October 12, 2003 Author Posted October 12, 2003 ah thanks, its working now, lol i didnt know i had to do that :P Quote
cdoverlaw Posted October 12, 2003 Author Posted October 12, 2003 Ok, now i need to know how to make a tickbox type thing on that right click menu This is the code of the tickbox in the program which it will replace but needs to do the same thing Private Sub CheckBox4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox4.CheckedChanged XpePanel1.Visible = Not CheckBox4.Checked End Sub Jonathan Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.