passwordChar紧凑框架的问题 [英] problem with passwordChar compact framework

查看:66
本文介绍了passwordChar紧凑框架的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我对Compact Framework开发有点陌生,但遇到一个问题
我正在为Win Mobile 6.1开发应用程序
第一种形式是登录表单,其中显然有2个文本框-用户名和密码
在密码字段中,我设置了密码字符,按预期,当您按下一个键时,它会掩盖真正的字符.
问题在于该应用程序适用于希伯来语用户.
它是用户字段(不包含passwordchar),而未为该字段设置任何默认值或语言,该字段以从右到左的光标开始,并且按键是预期的希伯来字符,但是当我按Tab键进入密码字段时,光标会跳到左侧当我检查文本框的文本值时,我看到英语字符是英语而不是希伯来语
用户和密码字段之间的文本框属性没有区别,除了密码字符.
有什么方法可以将密码字段设置为类似于用户字段(显然密码掩码除外)并接受希伯来字符吗?

感谢

Hi I''m a bit new to Compact Framework development and I stumbled into a problem
I’m developing an application for win mobile 6.1
The first form is a login form that has 2 text boxes obviously – user and password
In the password field I set the passwordchar and as expected when you press a key it masks the real char.
The problem is that the application is for Hebrew users.
It the user field (without the passwordchar) without setting any default or language for the field the field starts with the cursor from right to left and key strokes are Hebrew characters as expected but when I Tab to the password field the cursor jumps to the left and when I check the text value of the textbox I see that the English chars were in English instead of Hebrew
There is no difference in the textbox properties between the user and the password fields except for the password char.
Is there any way to set the password field to behave like the user field (except for the password mask obviously) and accept Hebrew char’s?

Thanks

推荐答案

对不起,您的回答很抱歉,对您的回答表示感谢
问题解决了.
它是使用虚拟键盘代替移动设备上的物理键盘来解决的.
sorry for the late response and thak you for the answer
problem solved.
it was f using the virtual keyboard instead of the physical one on the mobile solved the issue


尝试2个文本框.

不要将第二个设置为PasswordChar.

反过来-在txt change事件上,将其弹出到全局字符串中,并用``*''
替换最后一个字符
当您要进行比较/验证时,请确保字符串的最后一个"*"不是该部分.
try 2 textboxes.

don''t set the 2nd to PasswordChar.

in turn - on the txt change event pop it into a global string and replace the last char with ''*''

When you want to run comparisons /validations - make sure the last ''*'' isnt part fo the string.


这篇关于passwordChar紧凑框架的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆