Results 1 to 3 of 3

Thread: Passing data between forms

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2003
    Location
    Amsterdam, The Netherlands
    Posts
    53

    Passing data between forms

    I need to pass a string from one form to another.. My guess is I am making this more difficult then it is but I cannot figure out how to do this.

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    To make it short, you may define a property in form2, lets say sData and then
    VB Code:
    1. Dim frm as New Form2
    2. frm.sData="Whatoever"
    3. frm.Show
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  3. #3
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    Can you just reference Form2.stringVariable in Form1? stringVariable would have to be a module level variable.
    Or make it a global variable, maybe in a module. At least in VB6 that'd be a way to do it.

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