PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Listbox Text Align

Reply

Listbox Text Align

 
Thread Tools Rate Thread
Old 17-01-2006, 01:15 PM   #1
=?Utf-8?B?VGFtZXIgSGVzaGFt?=
Guest
 
Posts: n/a
Default Listbox Text Align


Hii All,
I am using a listbox and i display in it arabic contents, for arabic lang. I
have to align the text from right, but the listbox doesn't support that,
could i do that by another way or not.
Thanks in advance,
Regards

Tamer Hesham
  Reply With Quote
Old 17-01-2006, 02:37 PM   #2
Mark Arteaga
Guest
 
Posts: n/a
Default Re: Listbox Text Align

Check out this link http://www.danielmoth.com/Blog/2005...ess-on-rtl.html.
You can get it somewhat working on CE5.0 devices.

HTH.
________________________________________
Mark Arteaga
..NET Compact Framework MVP
http://www.opennetcf.com | http://blog.markarteaga.com

> Hii All,
> I am using a listbox and i display in it arabic contents, for arabic
> lang. I
> have to align the text from right, but the listbox doesn't support
> that,
> could i do that by another way or not.
> Thanks in advance,
> Regards
> Tamer Hesham
>




  Reply With Quote
Old 17-01-2006, 03:31 PM   #3
=?Utf-8?B?VGFtZXIgSGVzaGFt?=
Guest
 
Posts: n/a
Default Re: Listbox Text Align

Thanks Mark, the link was great, but i found that the header file used
(winuser.h) for runing the function setWindowLong(), but i work on C# not
C++, so how could i use this function in C#.
Thanks in advance
Regards

Tamer Hesham
  Reply With Quote
Old 17-01-2006, 09:53 PM   #4
Daniel Moth
Guest
 
Posts: n/a
Default Re: Listbox Text Align

No header file required. When you call native functions you have to use
pinvoke. Read this:
http://www.danielmoth.com/Blog/2005/02/win32api.html

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

"Tamer Hesham" <TamerHesham@discussions.microsoft.com> wrote in message
news:32B9DED3-C8C8-406E-85E1-9097F0BBF2DA@microsoft.com...
> Thanks Mark, the link was great, but i found that the header file used
> (winuser.h) for runing the function setWindowLong(), but i work on C# not
> C++, so how could i use this function in C#.
> Thanks in advance
> Regards
>
> Tamer Hesham



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off