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

  • Thread starter Thread starter Peter Siegmann
  • Start date Start date
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.
 
Back
Top