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. C#
  4. Creating, Showing, Returning values with Windows Forms.

Creating, Showing, Returning values with Windows Forms.

Scheduled Pinned Locked Moved C#
tutorialwinformsalgorithmshelp
3 Posts 2 Posters 0 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.
  • R Offline
    R Offline
    RanvA
    wrote on last edited by
    #1

    Hello, I was hoping someone could direct me to a tutorial on the web that would describe the best practices to create and show a windows form from a parent form. Right now, I'm doing this: (Assume that I am in some method in the main form and I want to create and show Form2)

    Form2 form2 = new Form2();
    form2.Show();

    I'd also like to know how to return values from a child form. I've been searching the web but can't find anything specific. Any help would be appreciated.

    Z 1 Reply Last reply
    0
    • R RanvA

      Hello, I was hoping someone could direct me to a tutorial on the web that would describe the best practices to create and show a windows form from a parent form. Right now, I'm doing this: (Assume that I am in some method in the main form and I want to create and show Form2)

      Form2 form2 = new Form2();
      form2.Show();

      I'd also like to know how to return values from a child form. I've been searching the web but can't find anything specific. Any help would be appreciated.

      Z Offline
      Z Offline
      Zultan
      wrote on last edited by
      #2

      This article may be what you're looking for on passing values between forms: http://www.codeproject.com/dotnet/passingvaluesbetweenforms.asp#xx1363185xx[^]

      R 1 Reply Last reply
      0
      • Z Zultan

        This article may be what you're looking for on passing values between forms: http://www.codeproject.com/dotnet/passingvaluesbetweenforms.asp#xx1363185xx[^]

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

        Excellent, thanks, I appreciate it.

        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