Disable selecting text in a TextBox

前端 未结 10 1827
再見小時候
再見小時候 2020-12-06 12:42

I have a textbox with the following (important) properties:

this.license.Multiline = true;
this.license.ReadOnly = true;
this.license.ScrollBars = System.Win         


        
10条回答
  •  一生所求
    2020-12-06 13:18

    If you put the text into a label and then but the label into a System.Widnows.Forms.Panel control that has AutoScroll turned on you can display the text w/o it being selectable.

提交回复
热议问题