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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
ASKER
how can i call this function?
eg
dim myButton as button
setControlStyle(myButton, ??)
thanks!
eg
dim myButton as button
setControlStyle(myButton, ??)
thanks!
BS_MULTILINE (or YourHelperClass.BS_MULTILI NE) as the last parameter
for myButton, you would use the actual control, not just uninitialized button
for myButton, you would use the actual control, not just uninitialized button
ASKER
thank you !!
ASKER
can you tell me where to put this code?