Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


PasswordTextBox


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 08-11-2007, 01:00 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 611
Default

Yes, the .Net Framework 2 is installed on my pc and it works fine with a lot of other programs. But if I open your "Controls" sample or add the dll to a new project I'll get the error.

I don't really need the password field and since Erel updated his FormLib...

But I'm still wondering.


specci48
Reply With Quote
  #12 (permalink)  
Old 08-11-2007, 01:13 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,206
Default

Updated Lib, should work now
Attached Files
File Type: zip Controls.zip (3.1 KB, 18 views)
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #13 (permalink)  
Old 08-11-2007, 01:36 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,488
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Cableguy View Post
text alignment is set to center: works on desktop but not on ppc
No idea why this doesn't work as long as you have set "Textbox1.TextAlign = TextBox1.TextAlign = HorizontalAlignment.Center". This is documented as being supported in CF 1.0 and 2.0.


Quote:
passworchar shows what ever char is set on desktop, but in ppc is always "*"
This is supported under CF 1.0 and 2.0 according the the VS2005 documentation. However if you are running under CF 2.0 the following applies :-
"UseSystemPasswordChar property (This property is new in the .NET Framework version 2.0) has precedence over the PasswordChar property. Whenever the UseSystemPasswordChar is set to true, the default system password character is used and any character set by PasswordChar is ignored."
Reply With Quote
  #14 (permalink)  
Old 08-11-2007, 02:38 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,206
Default

Thanks Agraham..

I did target cf 2.0 so perhaps thats the reason for the passwordchar not showing, no big deal...
The text alignment is set like this (and works on the desktop)
tb.textalign = HorizontalAligment.Center
being tb the textbox control's name...

In the desktop it works fine, but on the ppc is stays aligned to the left..maybe as result of the previous property?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #15 (permalink)  
Old 08-11-2007, 03:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

Only multiline textboxes support changing text alignment (on the device).
Reply With Quote
  #16 (permalink)  
Old 08-11-2007, 03:29 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,206
Default

mistery solved....
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #17 (permalink)  
Old 08-11-2007, 03:42 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,488
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Found this (at last) in the VS2005 docs. Explains both of Cableguys' queries.

Textbox in the Compact Framework
-----------------------------------

Single-line TextBox controls, specified by the Multiline property, support only left alignment. Multiline text box controls can be aligned left, right, or center.

If Multiline is false, the .NET Compact Framework sizes the control to the Height specification, but only the first line in the TextBox is usable. The full .NET Framework keeps the height to one line.

The PasswordChar property is always an asterisk (*), regardless of what is specified.
Reply With Quote
  #18 (permalink)  
Old 08-11-2007, 04:20 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 611
Default


A few days ago I did some hard disk cleaning, installed Basis4ppc to another directory ... and forgot to copy Dbasic.exe.config ...

So sorry for my unnecessary posts.

specci48
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:24 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0