CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #1
    Join Date
    Nov 2011
    Posts
    20

    Passing Data between single instance Windows Forms

    Hi! I want to pass data between two textboxes in two different forms when an OK button is clicked.
    Now I have found out that there are many ways to do it (Constructor, Object, Delegates Approach etc) all of them work, no problem.
    The issue here is that whenever the data is passed a new instance of the form is created.
    i.e If I click the OK button on Form1 ten times, ten Forms2 will be created with the passed data.
    How do I overcome this?
    Thanks!

    PS .NET4 VS-2010
    Last edited by Scar88; November 28th, 2011 at 08:04 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured