Results 1 to 4 of 4

Thread: mult. forms/global variables

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    22

    Question

    I am trying to use information from my first form and carry it over to a second/third form and put in a label. I load the 2nd/3rd forms in the form_load of the first (has to be this way) and when the user clicks the 'next' button I put the data received from the textbox into a global variable. Now since I have loaded the other forms I cannot move the stored values into the lables in the form_load procedure since it has already been done. I thought using the Gotfocus procedure I could change my labels this way but it does not seem to work. Is there any other way (under these circumstances) that I can take the stored data and move it to the labels before I show the screen?

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    On your "Next" button simply place a string of code like the following:

    Code:
    Form2.Text1.Text = Text1.Text
    This will tell form2 to set it's textbox to text1's text. Is this what you want?
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    22

    Talking That is exactly what I wanted

    Thank you for answering this for me.

  4. #4
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    No Problem
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

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