I´ve encountered memory allocation issues when I´ve trying to open 50 MB textfile in TextBox(Multiline). I´ve looked at project properties and textbox properties, but I was unable to find an appropriate option.

For example: I´ve tried to open 45 MB file in my app, but memory allocation goes up to 2 950 MB and then my system crashed with an out of memory error. Is there a way how to allocate (dynamically if it´s possible) more memory (i.e. 600 MB or so)?