how to pass a value in one windows form to another?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krishnanvarikkath
    New Member
    • Nov 2009
    • 1

    #1

    how to pass a value in one windows form to another?

    how to pass a value in one windows form to another?
    is we can use set get properties?
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    1. Static class/ fields
    2. In (new)form constructor, pass "this". That is have a constructor in child form that accepts the parent (this) object. Reference it and all public fields will be available

    Comment

    • ThatThatGuy
      Recognized Expert Contributor
      • Jul 2009
      • 453

      #3
      No don't use static fields or don't create a static object of the called form.....
      or the second or the dialog form
      check this post in which i've answered to this similar question

      Comment

      Working...