Sunday, 15 January 2017

c# windows multiple forms code

Hi guys, i will be introducing a windoes for concept any more details or topiucs you wish to have an idea on, please comment.
creating a new form
1.create a new windows project and then select c# then windows form.
2.provide a name for your form and click finish.

closing a form
add a button and name it close or exit as you may desire
double click it and type in the code
                      this.close();

opening another form
create another windows form
add a button to the parent form and name it as desired
                  add this code to the button
                   form1 frm= new form1();
                    frm.showdialog();



No comments:

Post a Comment