heres a richtextbox that i've extended to incorporate a right click edit menu...
edit: thanks Nick. that is slightly neater. i originally wrote it in vb2005, then upgraded it to vb2008. there are some changes with the contextmenustrip in vb2008.
Printable View
heres a richtextbox that i've extended to incorporate a right click edit menu...
edit: thanks Nick. that is slightly neater. i originally wrote it in vb2005, then upgraded it to vb2008. there are some changes with the contextmenustrip in vb2008.
Is there any reason why you didn't just use a ContextMenuStrip component and set the ShortCutKeys property of each item, instead of 'faking' the ShortCut display by setting it in the text?
It's not really a big difference I suppose, but this way there is a rather large empty space to the right of the shortcut letters which I think is not there if you just assign the ShortCutKeys property?
Otherwise nice and usefull control, saves alot of time if you gotta make RTB's often :)