于窗体设计视图,将密码文本框的“输入法模式“属性设置为”关闭“就行了。见图例
也可以用代码来设置
Private Sub Form_Open(Cancel As Integer) '窗体打开时强制使用英文输入Text2.IMEMode = acImeModeAlphaEnd Sub
Private Sub Text2_GotFocus() '获得焦点时强制使用英文输入Text2.IMEMode = acImeModeAlphaEnd Sub