![]() |
Click here to advertise with us
|
|
|||||||
| Graphics/GDI+ Graphics discussion for VB.NET applications, Winforms, Web, Compact Framework, etc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello, i want to ask how do you draw a string in a rectangle AND center aligned at the mid point of that rectangle ?
I can wrap the draw string in a rectangle I can centered the drawstring at a point but can somebody combine them ? |
|
||||
|
Call one of the overloads of DrawString that takes a StringFormat object as an argument. The StringFormat object lets you specify things like horizontal alignment.
__________________
![]() 2007, 2008, 2009, 2010 Why is my data not saved to my database? | Communicating between multiple forms MSDN: Data Walkthroughs | "How Do I?" Videos My Blog: Custom Events | Dynamic GDI+ Drawing |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|