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 Controls / March 2006

Tip: Looking for answers? Try searching our database.

Button with rich text capabilities

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sebastian Rettig - 30 Mar 2006 15:32 GMT
Hi,

I need a button that can display rich text previously created with a
rich edit control.
As far as I know there is no such thing in .NET (maybe I'm wrong there,
I'm fairly new to .NET).

A few years ago, I created such a control with MFC by myself by using
an owner-drawn button and a transparent rich edit control for drawing
its contents. It worked quite well. Do you think the same thing is
possible in .NET?
Nevertheless it would be great if someone could point me to an already
existing custom control or an easier solution.

Bye
Sebastian
Kevin Spencer - 30 Mar 2006 18:11 GMT
Sure it's possible. Just create a transparent RichTextBox. To do this, you
would create a class that inherits RichTextBox, and use the SetStyle method
to enable transparency.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

> Hi,
>
[quoted text clipped - 12 lines]
> Bye
> Sebastian
Herfried K. Wagner [MVP] - 30 Mar 2006 23:15 GMT
"Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> schrieb:
> Sure it's possible. Just create a transparent RichTextBox. To do this, you
> would create a class that inherits RichTextBox, and use the SetStyle
> method to enable transparency.

However, you'll have to redirect events when taking this approach.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>


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.