private void OpenNewSeq(object sender, System.EventArgs e)
{
Stream myStream = null;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.InitialDirectory = "c:\\" ;
openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" ;
openFileDialog1.FilterIndex = 2 ;
openFileDialog1.RestoreDirectory = true ;
openFileDialog1.ShowDialog();
//openFileDialog1.Dispose(); Commented out, it doesn't affect the results anyways.
}
Within GameForm.cs
I'm calling this method with an Event Handler, when my game is run, I go to File > Open, and when Open is clicked, it runs this function.
The only problem is that the window freezes. Is there somewthing I'm doing wrong?