Linking two pages using Visual STudio
-
I am doing a project which requires me to have a link from one page that will direct/take me to another page. How can i do this..?
-
I am doing a project which requires me to have a link from one page that will direct/take me to another page. How can i do this..?
Pages generally refer to web development not form development but if you are talking about forms in a Windows Application, it is easy. Create Form1 and place a button on the form using the form designer. Double click on the button and it will create the default event code stub for that control. The stub will be displayed in the code view. In the code stub enter something like: Form2 form = new Form2(); form.Show();
"You get that on the big jobs."
-
Pages generally refer to web development not form development but if you are talking about forms in a Windows Application, it is easy. Create Form1 and place a button on the form using the form designer. Double click on the button and it will create the default event code stub for that control. The stub will be displayed in the code view. In the code stub enter something like: Form2 form = new Form2(); form.Show();
"You get that on the big jobs."
There are two conditions in Windows form application to open Secod Form from First form. Openning the form in Normal mode: --------------------------------- Form2 objForm2=new Form2(); objForm2.Show(); it will open the second form as normal mode. Openning the form in Model mode: --------------------------------- Form2 objForm2=new Form2(); objForm2.ShowDialog(); It will open the second form as model form.