Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
無効なテキストボックスでテキストを選択するにはどうすればよいですか?
テキストを選択できるようにする場合はReadOnly、コントロールを無効にする代わりに属性を使用します。
ReadOnly
readonly無効にする代わりに使用します。
readonly
属性を削除し、enabled=falseこれを分離コードに追加します。
enabled=false
YourTextBox.Attributes.Add("readonly", "readonly");