Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

Context menus on TextBox and RichTextBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
batvanio@gmail.com - 15 Aug 2006 00:27 GMT
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
Mini-Tools Timm - 15 Aug 2006 18:03 GMT
> 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
[quoted text clipped - 6 lines]
> 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.

Signature

Timm Martin
Mini-Tools
.NET Components and Windows Software
http://www.mini-tools.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.