I am making a program which opens textfiles, initiates a bunch of variables and opens the file for editing.
I want to be able to close one text file and open another with the variables at their original settings.
I think it would be easier just to completely exit the program and reopen it, so I created another form which only contains the new() sub
I want form1 to be a modal form where the accept or reject is passed by a click in the file menu rather than through a button. Any ideas?
The other idea (easier) is to just restart the program with a me.restart() type command, but I don't know how to do that or what command i would use?
I want to be able to close one text file and open another with the variables at their original settings.
I think it would be easier just to completely exit the program and reopen it, so I created another form which only contains the new() sub
Code:
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
While Not bool
Dim form1 As New Form1()
bool = form1.ShowDialog()
End While
End Sub
The other idea (easier) is to just restart the program with a me.restart() type command, but I don't know how to do that or what command i would use?
Comment