Results 1 to 8 of 8

Thread: communicating between forms

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    320

    communicating between forms

    I have a from with a button. If you click the button it displays a dialog with a listbox, you select values on this form, click OK and get back to form1. What would be a good way to return values from Form2 to Form1.

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    check the other post started by Albino that explains a similar behavior..
    \m/\m/

  3. #3
    Hyperactive Member sw_is_great's Avatar
    Join Date
    Nov 2003
    Posts
    330
    u can declare public shared variable for holding the value and this u can share between the forms too.
    Regards

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    320
    Public shared variable means a public property in form2?

  5. #5
    Hyperactive Member sw_is_great's Avatar
    Join Date
    Nov 2003
    Posts
    330
    no u declare a variable as public shared
    Regards

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    320
    Thanks it worked!

  7. #7
    Hyperactive Member sw_is_great's Avatar
    Join Date
    Nov 2003
    Posts
    330
    Regards

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    320
    BTW What was its substitute in VB6. OR what do we do for a VB6 application to pass variables between forms?
    Does public shared mean just a public variable in VB6, that would make it global. Is that right?

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