Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Linking two pages using Visual STudio

Linking two pages using Visual STudio

Scheduled Pinned Locked Moved Windows Forms
questioncsharpvisual-studio
3 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jomon T Jose
    wrote on last edited by
    #1

    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..?

    R 1 Reply Last reply
    0
    • J Jomon T Jose

      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..?

      R Offline
      R Offline
      RobCroll
      wrote on last edited by
      #2

      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."

      R 1 Reply Last reply
      0
      • R RobCroll

        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."

        R Offline
        R Offline
        rajeevcapgeminiindia
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups