Guys i have a main form. When this one is loaded it first has to show another form. So there opens a new form and the main form is hided. How can I do this?

Hello there,
What you could do is, on the FormLoad() Event, you could write the following code:

Form1 secForm = new Form1(); //this is the new form that you want to show.
secForm.Show();

this.Hide();

Hope i helped,
Alex

To expand on what Alexpap said check out my tutorial. It shows how to hide and then recall the current form when the second form is closed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.