How to start second form

  • Thread starter Thread starter piotrek
  • Start date Start date
P

piotrek

Hi.
Its beginner question - sorry, but maybe someone can help me to start second
form, from an existing one.
I created and designed class Form2 that inherits from Form, and would like
to see this one after clicking a button.
In button clicked i tryied to write: Form 2 name = new Form2();
But i cant see the window.
PK
 
PK,

You have to show the form. After you create it, do this:

// Show the form.
name.Show();

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top