Make multiline textbox hold more text (C#, winform)

后端 未结 3 911
执念已碎
执念已碎 2021-02-14 14:22

I ran into a little problem, i am trying to filter a rather large list which i copied from another program and pasted into mine. Problem is, theres so much text that only some o

相关标签:
3条回答
  • 2021-02-14 14:35

    I am not sure, but I think you can just change the TextBoxBase.MaxLength property. On the linked page it says that the default value is 32767, so that is only 64KB and therefore not enough for your application.

    0 讨论(0)
  • 2021-02-14 14:36

    You can set the MaxLength property of your text boxes to 0 to override the default 32767 character limit:

    yourTextBox.MaxLength = 0;
    
    0 讨论(0)
  • 2021-02-14 14:36

    You could use a RichTextBox control instead. There is no character limit on a RichTextBox. It is just limited by memory.

    Or you could change the MaxLength property of the TextBox. The maximum value for MaxLength is 4294967295 or an amount based on available memory, whichever is smaller.

    0 讨论(0)
提交回复
热议问题