Opening/Selecting Editors

Hello,

I am having a bit of trouble with what might be a fairly simple task. I am looking to open a rather large (12k lines/ 5M) log file. I was unable to simply insert it within my form in a rich text box ( it just hung).

I decided what might be better would be allowing the user to open the file with whichever editor they prefer (WordPad,ConText,ect...) I was unable however to find a way of launching an application (and having it open the selected file).

I am very new to .net and I would really appreciate any direction or advice that might be offered. (My experiance lies in Java so J# commands would be prefered but certainly not necessary)

Thanks Again



Answer this question

Opening/Selecting Editors

  • rayfward

    Hi,

    I'm not entirely sure what you mean. I am looking for a way to open a text file in say WordPad by clicking a button in my form. I don't have any code as I have not been able to find any way to do this thusfar.

    The issue stems from my inital attempt at loading a very large string into a Rich Text Box which hadn't completed after about 3 min. I can open the same file in Context,Wordpad, or even notepad in a second or 2 and I want my users to have the ability to bring up the entire file should they wish.

    I hope this clarifies it a little bit ,mostly I wan to be able to insert a VERY large sting into a Rich text box, or preferably open a file within Wordpad from within my Form.

    Thanks again for your time

    Brent


  • elf_sander

    Hi,

    Could you please send us the code snippet which reproduces the issue or tell us the APIs you have been using to get it done.

    Thanks.



  • hakl

    BreSmith wrote:
    The issue stems from my inital attempt at loading a very large string into a Rich Text Box which hadn't completed after about 3 min. I can open the same file in Context,Wordpad, or even notepad in a second or 2 and I want my users to have the ability to bring up the entire file should they wish.

    Could you please send the code which inserts your file contents in the rich text box.

    Thanks.



  • Opening/Selecting Editors