TextBox maximum amount of characters (it's not MaxLength)

前端 未结 3 1416
陌清茗
陌清茗 2020-12-16 04:14

I\'m using a System.Windows.Forms.TextBox. According to the docs, the MaxLength property controls the amount of characters enter a user can type or

3条回答
  •  误落风尘
    2020-12-16 04:29

    The theoretical limit is that of a string, ~2GB. However, in reality, it depends upon the conditions in your running process. It equates to the size of the largest available contiguous section of memory that a string can allocate at any given time. I have a textbox in an application that is erroring at about 450MB.

提交回复
热议问题