is it possible to passing text box value from one form to another

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Apr 2008
Posts: 84
Reputation: swapna7999 is an unknown quantity at this point 
Solved Threads: 0
swapna7999's Avatar
swapna7999 swapna7999 is offline Offline
Junior Poster in Training

is it possible to passing text box value from one form to another

 
0
  #1
Apr 17th, 2008
is it possible to pass the value of a text box and the caption of a label from one form to another
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: is it possible to passing text box value from one form to another

 
0
  #2
Apr 17th, 2008
Hi,

Write this Code in Main Form:

  1. Form2.Show
  2. Form2.txtNew.Text = Me.Text1.Text
  3. Form2.lblNew.Caption = Me.Label1.Caption

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: is it possible to passing text box value from one form to another

 
0
  #3
Apr 17th, 2008
everything is possible. In vb 6 you can direct access value from another form of any control (example is done by veena) but in .net you will find encapsulated form.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 84
Reputation: swapna7999 is an unknown quantity at this point 
Solved Threads: 0
swapna7999's Avatar
swapna7999 swapna7999 is offline Offline
Junior Poster in Training

Re: is it possible to passing text box value from one form to another

 
0
  #4
Apr 18th, 2008
i got another solution

just call

Form1.Text1.Text

from Form2 to access the value of Text1 in the form Form1
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 3914 | Replies: 3
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC