DrawString with character wrapping
- by Roy
Hi all,
I'm creating a fatal error dialog for a Windows Mobile Application using C#. The problem is when I try to draw the stacktrace using DrawString, half of my stacktrace is getting clipped off because DrawString uses word wrapping instead of character wrapping.
For those who don't understand the explanation:
When i draw the stacktrace, it comes out as this:
at
company.application.name.space.Funct
at
company.application.name.Function(St
at
etc. etc.
And i want it to print like this:
at
company.application.name.space.Funct
ion(String sometext, Int32 somenumbe
r)
at
company.application.name.Function(St
ring sometext, Int32 somenumber, Int
32 anothernumber)
at
etc. etc.
Is this possible in Csharp?