Results 1 to 9 of 9

Thread: How do I get the textbox value from Form1 to form2 ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Location
    Mumbai
    Posts
    31

    Question How do I get the textbox value from Form1 to form2 ?

    How do I get the textbox value from Form1 to form2 ?

    Help help Help !!!!!

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Answered lots of time in this forum. Just search.
    '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
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    Unhappy

    i searched but cant find this???
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    lol , everyone scapes from this question . It's messy in some cases . anyways , try this

    in form2 put this code :

    Dim frm1 as new form1

    'assign the value returned to textbox on your form2
    textbox1.text =frm1.textbox1.text

  5. #5
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Talking

    I know i had to ask about it too.

    This is my thread regarding this subject: Data Across Two Forms
    ~Peter


  6. #6
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    I wonder why form objects arent automaticaly refrenced by the entire project like they were in VB6. It's as if each form knows nothing about any other form in the entire project with .net. That's why you have to create the form in memory (again) in order to use it. It seems like a huge waste of memory since the form is already there, there is no reason to create it again...
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  7. #7
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    I wonder why form objects arent automaticaly refrenced by the entire project like they were in VB6. It's as if each form knows nothing about any other form in the entire project with .net. That's why you have to create the form in memory (again) in order to use it. It seems like a huge waste of memory since the form is already there, there is no reason to create it again...
    By the same token you can blame all refrence type objects.
    '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

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    MS guys are doing this only to achieve something can be difficult in VB6 which called Full OOP .

  9. #9
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Everyone here on this forum needs to bookmark this link so they can refer this type of question to it. It will explain to VB6 people how to work with form objects in VB.Net

    http://msdn.microsoft.com/library/de...adingtonet.asp

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