this is my code
Private Sub Form1_load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
RichTextBox.Loa dFile("C:\\file notes", RichTextBoxStre amType.RichText )
End Sub
Private Sub Form1_FormClosi ng(ByVal sender As Object, ByVal e As
System.Windows. Forms.FormClosi ngEventArgs) Handles Me.FormClosing
RichTextBox.Sav eFile("C:\\file notes", RichTextBoxStre amType.RichText )
End Sub
when i open my app it comes up with an error , because it trying to load a file that is not there , it there a 'runonce' command which will only run on the first ever run of the program ( a command to create the file "C:\\filenotes" ) . This would solve my problem
( the code is very basic generally because i'm new to vb)
thanks for your time / help
Private Sub Form1_load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
RichTextBox.Loa dFile("C:\\file notes", RichTextBoxStre amType.RichText )
End Sub
Private Sub Form1_FormClosi ng(ByVal sender As Object, ByVal e As
System.Windows. Forms.FormClosi ngEventArgs) Handles Me.FormClosing
RichTextBox.Sav eFile("C:\\file notes", RichTextBoxStre amType.RichText )
End Sub
when i open my app it comes up with an error , because it trying to load a file that is not there , it there a 'runonce' command which will only run on the first ever run of the program ( a command to create the file "C:\\filenotes" ) . This would solve my problem
( the code is very basic generally because i'm new to vb)
thanks for your time / help
Comment