Hi Buddy,
MikeY provided a simply way of controling the text alignment of button
control.
But I think the funtion provided by Button's text alignment property is too
limited.
If you want to get more control over the button, you can override the
wndproc of
the form then subclass the button's wndproc, then you can control the
button text at your pleasure.
Hope it helps.
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Buddy" <
[email protected]>
| Sender: "Buddy" <
[email protected]>
| Subject: How to reposition the text in a button control
| Date: Fri, 18 Jul 2003 08:10:04 -0700
| Lines: 6
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcNNPqriW72z/k4lQFet1s7Fd4xsKA==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:170213
| NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hello,
|
| Can someone point me to some example code that shows how
| to paint the text in a button control. I basically want to
| reposition the text so it does not wrap.
|
|