Context menus on TextBox and RichTextBox

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