I'm quite new at c#, nevertheless
today I tried to make a little application and I ran into a little problem.
Well, I got this form that i want to close when i click the button and then open a new one, not just hiding it.
first I tried this
this.hide(); new form3().Show();
Which worked fine, but the problem was that when i closed the program, form2 was still running in the background, which I don't want it to.
then I tried this
this.close(); new form3().Show();
but then I ran into another problem, when I clicked the button it would quickly open the next form and then exit the whole application.
So what should I do to close that form at the beginning so it doesn't have to run in the background?