HighTechTalks DotNet Forums  

Re: Drawing on a derived textbox class

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss Re: Drawing on a derived textbox class in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Crirus
 
Posts: n/a

Default Re: Drawing on a derived textbox class - 07-06-2003 , 02:13 PM






I really need to get some hints on how to redefine the way textbox paint it
self... I need a complet control on layout in order to display text as I
want, but I dont know how to do that and keep the rest of facilities like
display caret


"Martin Andert" <martin.andert (AT) gmx (DOT) de> wrote

Quote:
Maybe this will help you:

* override WndProc for the textbox
* catch the WM_PAINT message
* paint your own layout

Martin


"Carlos Hernandez" <carlos (AT) integrasofthn (DOT) com> wrote

I thought on that idea, but I want to derive ti from the textbox
control. IF
there is no choice, I will do it that way.
"Bob Powell [MVP]" <bob (AT) _spamkiller_bobpowell (DOT) net> wrote in message
news:%2337PqHmLDHA.2292 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
This question would be better asked in Windowsforms.Controls but...

You would probably be better off creating a user control that contains
a
textbox and a button.

--
Bob Powell [MVP]
C#, System.Drawing

Check out the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Buy quality Windows Forms tools
http://www.bobpowell.net/xray_tools.htm

Get the NEW must-have UI component. The .NET RectTracker
Enables CRectTracker like functionality for WindowsForms.
User defined layouts are a breeze.
http://www.bobpowell.net/recttracker.htm

"Carlos Hernandez" <carlos (AT) integrasofthn (DOT) com> wrote in message
news:uNe$FihLDHA.368 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
How can I draw an image in a class that derives from the textbox?
I want to be able to redefine the drawing part of the base control,
and
at
the edge of the control draw a botton.

Thanks.







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.