如何在文本框中获取输出,并且没人可以在文本框中输入任何文本

问题描述:

请告诉我用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;