如何在文本框中获取输出,并且没人可以在文本框中输入任何文本 [英] How Can Get output in the text box And No One can Enter any text in the text box

查看:70
本文介绍了如何在文本框中获取输出,并且没人可以在文本框中输入任何文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我用C#编码,如何在未输入的文本框中获得输出.并且没有人可以在文本框中输入任何值..

Please tell me coding in c# that how can i get output in textbox not input. and no one can enter any value in the textbox..

推荐答案

使用
Use the Readonly[^] property of the textbox.

YourTextboxID.ReadOnly = true;


textBox1.Enabled = false;


matextBox.ReadOnly = true;


这篇关于如何在文本框中获取输出,并且没人可以在文本框中输入任何文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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