|
-
May 3rd, 2008, 05:28 AM
#1
Frenzied Member
Re: Open a textfile to richtextbox1
 Originally Posted by kake_fisk
Ahh, i don't understand what wrong, all my code looks perfect...
vb Code:
Imports System.IO
Public Class Form3
Private Sub Form3_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
File.WriteAllText("notes.txt", RichTextBox1.Text)
End Sub
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If File.Exists("notes.txt") Then
Path.Combine(Application.StartupPath, "notes.txt")
End If
End Sub
End Class
But it won't save now as it always did before...
The first sub is writing to a text file but the second is populating nothing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|