getting text from 1 form to a label on another form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zaccy
    New Member
    • Jul 2007
    • 11

    getting text from 1 form to a label on another form

    i have a form where the user inputs text in a text box and then click a button saying continue then i have another form where the user inputs more text and clicks a button saying continue i want the first part of text to be in a label on the 3rd form and the 2nd text in another label on the third form.

    i think i have the code, this is what i put in but nuthin went into the labels:


    txtboxname.Text = formname.labelname.Text


    but nothing goes into the labels


    please help!!!!!!!!!!! !
  • arunbalait
    New Member
    • Feb 2007
    • 164

    #2
    Originally posted by Zaccy
    i have a form where the user inputs text in a text box and then click a button saying continue then i have another form where the user inputs more text and clicks a button saying continue i want the first part of text to be in a label on the 3rd form and the 2nd text in another label on the third form.

    i think i have the code, this is what i put in but nuthin went into the labels:


    txtboxname.Text = formname.labelname.Text


    but nothing goes into the labels


    please help!!!!!!!!!!! !
    Actually what you really want?

    One form1.text1.tex t=form2.label1. caption or?
    form1.label1.ca ption=form1.tex t1.text

    Textbox's values to be assigned to label or label's caption should be assigned to textbox?

    Comment

    • hariharanmca
      Top Contributor
      • Dec 2006
      • 1977

      #3
      Originally posted by Zaccy
      i have a form where the user inputs text in a text box and then click a button saying continue then i have another form where the user inputs more text and clicks a button saying continue i want the first part of text to be in a label on the 3rd form and the 2nd text in another label on the third form.

      i think i have the code, this is what i put in but nuthin went into the labels:


      txtboxname.Text = formname.labelname.Text


      but nothing goes into the labels


      please help!!!!!!!!!!! !
      which version of VB that you are using?

      because, VB 6 have only labelname.Capti on but you gave labelname.Text
      check is this correct.

      and main thing is you have to get the assigenment statement format.

      it will be just like below.
      Code:
       GetAssigenedValueControl =    SetAssigeningValueControl

      Comment

      • Zaccy
        New Member
        • Jul 2007
        • 11

        #4
        Originally posted by arunbalait
        Actually what you really want?

        One form1.text1.tex t=form2.label1. caption or?
        form1.label1.ca ption=form1.tex t1.text

        Textbox's values to be assigned to label or label's caption should be assigned to textbox?

        i tried this and still nothin appeared in the label

        Comment

        • hariharanmca
          Top Contributor
          • Dec 2006
          • 1977

          #5
          Originally posted by Zaccy
          i tried this and still nothin appeared in the label

          can you post what you had tryed?

          Comment

          • Zaccy
            New Member
            • Jul 2007
            • 11

            #6
            ok i got it working differantly
            i just put a button conecting to an input box that led to the label
            thnx anyway peepz

            Comment

            Working...