How to add the standard context menu to a richtextbox? (winforms)
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.
.
Relevant Pages
- Re: Userform help text
... If you want context sensitive help, the double click event of a textbox ... control to the appropriate context ID in the help project. ... TextBox on a single UserForm. ... I'd go with the Label. ... (microsoft.public.word.vba.general) - Re: DateTimePicker .NET 2
... Éric Moreau, MCSD, Visual Developer - Visual Basic MVP ... When the control is enabled and disabled I would like the user to be able ... to get the context menu to say Copy, Past, and other items I will place ... behaviour than the textbox control? ... (microsoft.public.dotnet.languages.vb.controls) - Re: Button list control
... > When you use page controls, different context menus may apply to every ... > of the actually displayed archive, not on the container control. ... "DisplayProperties" action is enabled, and the selected transaction, ... (comp.lang.pascal.delphi.misc) - Re: format part of a TextBox content
... the UI of my own proofing tool, and the TextBox shows the word being ... corrected in context: the context in default color and the word ... The TextBox control provided for VBA User Forms is "plain ... (microsoft.public.word.vba.general) - Re: raising Page event with customs webcontrol
... Context, which would be raised when there's no associated http context e.g ... inside a control you can get to the HttpContext yourself via ... > through the registering of the control to raise events and place a public ... > and they will have Page level scope context. ... (microsoft.public.dotnet.framework.aspnet.buildingcontrols) |
|