H
Houston Keach
The following function creates an instance of my login form, displays
it using ShowDialog() and then calls Dispose() to free the resources.
private void Login()
{
FormLogin LoginForm = new FormLogin();
LoginForm.ShowDialog();
LoginForm.Dispose();
}
If the function is called a second time I get an exception,
System.ObjectDisposedException, when one of the TextBox controls on
the form is accessed. It seems like all of the controls should have
been initialized just like the first time. What am I missing?
--Houston Keach
it using ShowDialog() and then calls Dispose() to free the resources.
private void Login()
{
FormLogin LoginForm = new FormLogin();
LoginForm.ShowDialog();
LoginForm.Dispose();
}
If the function is called a second time I get an exception,
System.ObjectDisposedException, when one of the TextBox controls on
the form is accessed. It seems like all of the controls should have
been initialized just like the first time. What am I missing?
--Houston Keach