如何在文本框中获取输出,并且没人可以在文本框中输入任何文本 [英] How Can Get output in the text box And No One can Enter any text in the text box
本文介绍了如何在文本框中获取输出,并且没人可以在文本框中输入任何文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请告诉我用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..
推荐答案
使用 ^ ]属性.
YourTextboxID.ReadOnly = true;
Use the Readonly[^] property of the textbox.
YourTextboxID.ReadOnly = true;
textBox1.Enabled = false;
matextBox.ReadOnly = true;
这篇关于如何在文本框中获取输出,并且没人可以在文本框中输入任何文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文