【发布时间】:2019-07-25 17:29:37
【问题描述】:
我有一个TextBox 控件并希望能够复制TextBox 的内容。
TextBox 的属性如下所示;
textBox1.Enabled = false;
textBox1.ReadOnly = false;
即使 ReadOnly 属性为 false,我也无法复制 textBox1 的内容。
有什么建议吗?
【问题讨论】:
-
您是否尝试将
enabled设置为true? -
我错过了一点,如果我将 ReadOnly 设置为 true,那么 Enabled 属性是否重要?
-
@MehmetInce:- 我已经在我的回答中提到了这一点!
-
感谢您的所有回答。 @Rahul 特别感谢您的回答。