How to add the standard context menu to a richtextbox? (winforms)

P

Peter Siegmann

Hi,

When you rightclick on a richtextbox, no context menu appears (as
opposed to when you right click on a textbox control).

Now, I know I can add my own ContextMenuStrip and wire it with the
richtextbox, but, there is a problem: The text in the context menu is
fixed. If I include my own "cut, copy, paste" items into a
ContextMenuStrip, the strings won't be automaticaly translated in
Windows versions of different languages. That's why I want to use the
standard context menu, as it appears on textbox controls, because
windows itself generates it, and it's of course localized in all the
other languages.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top