open the window application take 2 window forms..
then change the name as you wish..click on add
name form1 and form2....
design form1 like this 2 textbox and 1 button.
double click on the button and write the code
when you give the value admin in both the textbox according to the query then it redirects to form2 otherwise error occurs.
in the form2 take 1 button
double click on the button write the code
then run the program...
on the button click event...
Form2 a = new Form2();//create the object of form2
a.Show();//calling the show method for the form2
then change the name as you wish..click on add
name form1 and form2....
design form1 like this 2 textbox and 1 button.
double click on the button and write the code
when you give the value admin in both the textbox according to the query then it redirects to form2 otherwise error occurs.
in the form2 take 1 button
double click on the button write the code
then run the program...
on the button click event...
Form2 a = new Form2();//create the object of form2
a.Show();//calling the show method for the form2
No comments :
Post a Comment