![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |