pocketpc textbox align

C

crowl

Hi all,

I start developing for pocket pc with C# under VS.NET 2003. I run into
trouble with the textbox settings.

On the form I have placed a textbox. I noticed that in the textbox
properties I have no possiblity to change the "TextAlign" propertie.
There is only "Left" available!

In the msdn I found the following code to change TextAlign:
textBox1.TextAlign = HorizontalAlignment.Center;

But it doesn't work :-( Is this by the design of .NET for pocket pc?
Or is there are way to change the alignment?

Any help would be appropriated. Thanks.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

IT's that way by design:
From MSDN: TextBox.TextAlign

..NET Compact Framework - Windows CE .NET Platform Note: In Pocket PC
applications, a single-line TextBox supports only left alignment. A
multiline TextBox can be aligned on the left, right, or center.


Cheers,
 

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