Hi, I'm doing a project with Processing, and Visual Basic. I have an application exported with processing that takes the resolution of the window of a text file. I am programming a launcher in visual basic in which you can select the resolution you want, and this what you do is write in that text file, for when you execute the processing application, use the desired resolution. My problem is that when I modify the text file manually, the application is executed in those resolutions. But when modifying it through the launcher, the application does not run.
The Vb code
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
If ComboBox1.Text = "1920x1080" Then
Dim file As System.IO.StreamWriter
file = My.Computer.FileSystem.OpenTextFileWriter(Application.StartupPath & "\application.windows64\data\resolucion.txt", False)
file.WriteLine("1920")
file.WriteLine("1080")
file.Close()
End If
If ComboBox1.Text = "1280x720" Then
Dim file As System.IO.StreamWriter
file = My.Computer.FileSystem.OpenTextFileWriter(Application.StartupPath & "\application.windows64\data\resolucion.txt", False)
file.WriteLine("1280")
file.WriteLine("720")
file.Close()
End If
If ComboBox1.Text = "800x600" Then
Dim file As System.IO.StreamWriter
file = My.Computer.FileSystem.OpenTextFileWriter(Application.StartupPath & "\application.windows64\data\resolucion.txt", False)
file.WriteLine(800)
file.WriteLine(600)
file.Close()
End If
End Sub'