Results 1 to 11 of 11

Thread: Read file into richtextbox *[resolved]*

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435

    Thumbs up Read file into richtextbox *[resolved]*

    How? I've searched the forum and came across this:

    VB Code:
    1. Dim fs As FileStream = New FileStream(Application.StartupPath & "\snippets.txt", IO.FileMode.Open)
    2. Dim sw As New StreamWriter(fs)
    3. sw.Write(rtbcodewindow.Text)
    4. sw.Close()
    5. fs.Close()

    but nothing seems to happen!

    I have a toolbar and pressing various buttons will load an associated rtf file, plain and simple, but how? I need the exact code as I can get bugger all to work!

    Last edited by RealNickyDude; Dec 31st, 2002 at 12:01 PM.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width