Word wrap on a button

  • Thread starter Thread starter Björn
  • Start date Start date
B

Björn

Hello together,

does somebody know how to do a word wrap on a button text if the text is to
long for then button? The text I read out of a database and the buttons were
created at runtime.

- VB.NET Compact Framework 2003
- Pocket PC 2003

Thx BG
 
You need to write a custom control to achieve this, derive your own button
class from Control and do all the painting yourself.
 
Try checking out these entries from the FAQ:

5.10. How do I create custom controls for the .NET Compact Framework?

Add to your skills for creating controls on the .NET Framework by learning
how to create controls for the .NET Compact Framework. This article also
includes a code sample for a custom control:
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/customctrlscompactfx.asp

5.11. How do I create a Microsoft .NET Compact Framework-based image button?

This article discusses the ways to create a .NET Compact Framework-based
image button:
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/ImageButton.asp


--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top