menustrip prob. and del and backspace prob.
I have two perplexing problems. I'm using VB 2010 express on Windows 7 SP 1 Ultimate.
1. My first form, Form1, displays a grid with 6 textboxes and all them are set to ReadOnly = True.
I have a menustrip on my form with two items, Copy and Select All.
However, when I right click on a textbox the context menu displays the Windows default options of Copy, Paste, Cut and Select All.
How do I make the context menu to only display the options on the menu strip?
2. My second form which is called as Form2.ShowDialog() and is used to edit the selected record from Form1.
All the textboxes are set to ReadOnly = False.
But the Delete button and the Backspace button on my keyboard do nothing.
How do I get them to delete and backspace?
Thanks in advance for your time,
1. You need to add a ContextMenuStrip to your form and then assign that to the ContextMenuStrip property of each control. If you want that same list of menu items used in the form's main menu then you can also assign that ContextMenuStrip to the DropDown property of a menu item.
2. What exactly do you expect the Delete and Backspace keys to do if the controls are ReadOnly?