I am totally confused about forms in c#.
If someone can explain the following simply please.
I have a main form - called Front.
under the section partial class Front : Form
I have a Form newF= new Form();
More than once in the program I call the newF form with different button layouts etc. I close it each time so that the display changes as required.
Sometimes I get an exception error because the form doesn't exist.
As I understand it I need to check if newF exists, before calling am instance.
The problem is if I try code to check if newF exists, the program says I can't refer to it when it doesn't exist.
How do I overcome this please?