Context menus on TextBox and RichTextBox

B

batvanio

Hi,

I am using a RichTextBox and I would like to have the standard context
menu (RightClick menu) that the standard TextBox control has (i.e. if
you use TextBox instead of RichTextBox, there is a standard context
menu with Cut, Copy, Paste and few other selections right out of the
box, you don't need to do anything). However, this is not available (at
least not right out of the box) for the RichTextBox. I tried to find a
property or a method to enable this but could not find anything - it
looks like I need to implement the context menu. Not that it is a big
deal, but all I need is exactly what's in the TextBox context menu, and
I wonder if there is an easier way to enable it.

Thanks,
Ivan
 
G

Guest

I am using a RichTextBox and I would like to have the standard context
menu (RightClick menu) that the standard TextBox control has (i.e. if
you use TextBox instead of RichTextBox, there is a standard context
menu with Cut, Copy, Paste and few other selections right out of the
box, you don't need to do anything). However, this is not available (at
least not right out of the box) for the RichTextBox. I tried to find a
property or a method to enable this but could not find anything - it
looks like I need to implement the context menu. Not that it is a big
deal, but all I need is exactly what's in the TextBox context menu, and
I wonder if there is an easier way to enable it.

Unfortunately you will have to create your own context menu. The standard
RichTextBox does not supply the default TextBox context menu.
 

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