copy text to RichTextBox

vb6 Bahrain
  • 14 years ago

    Hi...
    I have a notepade file (outfile.txt), and i want to make a copy for the text from notepade to a RichTextBox..

    How can i do that?

    Thanks

  • 14 years ago

    Hi Bodoora

     With rt   
        .LoadFile ("C:\Documents and Settings\Administrator\Desktop\SPH_PROJ.txt")
      End With




    This method will solve your problem

    Good Luck

    Regards
    Hari K......











  • 14 years ago

    Hi...
    I want to change this statment to read from RichTextBox..


    Open "C:\buckwalter_morphan_1\data\outfile.txt" For Input As #1


    please, how can i do that?
    And thanks Hari about the code its work...

  • 14 years ago

    Hi Bodoora
     I can't get ur problem.
     Any way the follwoing link may helpful for you.

    http://goforit.unk.edu/vb6/pt7_3.htm
    http://www.developerfusion.co.uk/show/16/

     Pls give me some more details of ur requirement when you get problem after gothrough the above Links.

    Good Luck

    Regards
    Hari K......















  • 14 years ago

    Hi Hari...

    Thanks about the link i see it, but i do not want to load the file i want to read the text that in the RichTextBox..

    the statement above help me to read from the file but now i want to chang to read from RichTextBox.

    Is there any idea to do that (read from the RichTextBox)?

    Thanks

    Regards

    Bodoora

  • 14 years ago

    Hi All...

    Thanks Hari about the link i see it, but i do not want to load the file i want to read the text that in the RichTextBox..

    the statement above help me to read from the file but now i want to chang to read from RichTextBox.

    Is there any idea to do that (read from the RichTextBox)?

    Thanks

    Regards

    Bodoora

  • 14 years ago
    Hi Bodoora
     I not able to get ur problem. Because there are two methods are availale to get value from RichTextBox.

    RichTextBox1.Text and RichTextBox1.TextRTF

    Give me some more detail for your requirement.

    Regards
    Hari K......

















Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The generation of random numbers is too important to be left to chance.” - Robert R. Coveyou