Link to home
Start Free TrialLog in
Avatar of spiral2007
spiral2007

asked on

button text wrap in wm 5

Hello people,
I'm developing a Windows Mobile 5 Application using Visual Studio 2008 and VB.NET.
I hava a button on a panel and I want to wrap button's text into two lines.
I've tried using Environment.NewLine and vbCrLf but none of these worked.
How can I do it?
ASKER CERTIFIED SOLUTION
Avatar of alexey_gusev
alexey_gusev
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of spiral2007
spiral2007

ASKER

hello alexey_qusev,
can you tell me where to put this code?
you can put it in the form where you have your buttons or (if you want to use it in multiple forms) create separate class, add there all the code from the snippet (as I did and called it Win32Helper). then add the function (setControlStyle ) eg to your form class
how can i call this function?

eg

dim myButton as button
setControlStyle(myButton, ??)


thanks!
BS_MULTILINE (or YourHelperClass.BS_MULTILINE) as the last parameter

for myButton, you would use the actual control, not just uninitialized button
thank you !!