为什么更改TextBox.UseSystemPasswordChar属性会调用TextBox.Focus()方法? [英] Why is the changing of TextBox.UseSystemPasswordChar property invokes the TextBox.Focus() method?
本文介绍了为什么更改TextBox.UseSystemPasswordChar属性会调用TextBox.Focus()方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在stackoverflow的此处发布问题标题为为什么我不能使用tab离开TextBox?.在我的代码中,我更改了 TextBox.Leave
事件中的 TextBox.UseSystemPasswordChar
属性的值,并防止该事件通过 TAB
键,只要在执行设置 TextBox.UseSystemPasswordChar
的行时调用 TextBox.Focus()
方法即可.
I post a question here in stackoverflow entitled Why can't I leave a TextBox using tab?. In my code, I change the value of TextBox.UseSystemPasswordChar
property in the TextBox.Leave
event and it prevents it to focus to other control through TAB
key by invoking the TextBox.Focus()
method whenever the line of setting the TextBox.UseSystemPasswordChar
is executed.
查看全文