Hi , I Working into my secondary tool for gta san andreas the game .
But I Has A Problem into Open File Dialog And I Watch Many Video About it But Also The Same Result .
The Problem Was on Thoes Codes :
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
SaveFileDialog1.ShowDialog()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
OpenFileDialog1.ShowDialog()
End Sub
Private Sub SaveFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles SaveFileDialog1.FileOk
Dim writer As New IO.StreamWriter(SaveFileDialog1.FileName) 'Creates the 'writer'
writer.Write(TextBox1.Text) 'This will write it.
writer.Close() 'Closes it.
End Sub
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
Dim reader As New IO.StreamReader(OpenFileDialog1.FileName) 'creates the 'reader'
TextBox1.Text = reader.ReadToEnd 'Reads the file the 'reader' has been told to open and puts the text into textbox1
reader.Close() 'Closes the reader.
End Sub
End Class