输入密码3次时禁用TextBox(C#) [英] Disable TextBox When Enter worng Password 3 Times (C#)
本文介绍了输入密码3次时禁用TextBox(C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
i有一个程序在c#
展开 | 选择 | 换行 | 行号
解决方案
有一个会话变量并在密码错误时递增它。
当会话变量== 3时,禁用txtPassword(TextBox)
:)
请你解释一下
因为我是新人而不是专业人士
什么意思会话变量
如果你的意思
展开 | 选择 | Wrap | 行号跨度>
hello
i have a program in c#
Expand|Select|Wrap|Line Numbers解决方案Have a session variable and increment it when the password is wrong.
Disable the txtPassword (TextBox) when the session variable ==3
:)
please can u explain more
becuase i am new and not professional
what mean session variable
if u mean
Expand|Select|Wrap|Line Numbers
这篇关于输入密码3次时禁用TextBox(C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆