C#中的文本框问题(winforms) [英] textbox problem in C# (winforms)

查看:88
本文介绍了C#中的文本框问题(winforms)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望文本框中的值仅插入一次

此后未插入该值

I want that the value in a text box is inserted only once

After that the value does not inserted

推荐答案

一旦文本框失去焦点并且其文本长度大于0,则将其设置为只读.
As soon as the textbox loses focus and its text''s length is greater than 0, make it read only.

blockquote>


这篇关于C#中的文本框问题(winforms)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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