Richtextbox control - out of memory exception - winforms RRS feed

  • Question

  • Hi,

    In C# - Winforms ,

    1)   I loaded 100 MB text file in richtextbox control in vs 2008 but  i can't able to do other operation such as find -  it gives out of memory exception

        2)  I tried to load 200 MB text file in richtextbox control in vs 2008 - it gives out of memory exception.

    anybody tell me how to resolve this issue

    I have attached image with this

    With regards,


    Friday, May 11, 2012 8:17 PM


  • Load the file into a string array using File.ReadAllLines and search the array.  A textbox is for inputing and displaying information from and to a user.  You only need to display what can fit on the user's screen.

    Friday, May 11, 2012 9:26 PM