Word wrap on a button

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
 
M

Maarten Struys, eMVP

You need to write a custom control to achieve this, derive your own button
class from Control and do all the painting yourself.
 
G

Geoff Schwab [MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top