New to C#. I've created a small program with an "about" menu item. When clicked the program opens another form. I want to code this so you can close and open this about forms as many times as one wishes. The way I have it coded, the about form will open and close once, but when you try and open it again it throws an error ("Can't access a disposed object").
As I am teaching myself, I feel a bit lost. What is the best way to open and close an additional form from some event in the main form as many times as one wishes?
A sample of the code I'm using:
private about af = new about();
private void dispAbout(object sender, EventArgs e)
af.StartPosition = FormStartPosition.CenterScreen;
af.MinimumSize = new Size(600,300);