[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

christophilus

1/18/2005 4:57:00 AM

I'm using vb.net and GDI+ to create a custom textbox. When I draw a
string (or measure one), if the string is too long to fit into the
bounds, I want to know at what character index GDI+ cuts my string off.
Is there any way to find this? Someone hinted that an API call to
DrawTextEx might to the trick, but so far I haven't been able to get
this call to work without throwing an error.

Thanks,
Chris