0

So I have two forms. I want the information i input to text boxes in form one, to show up in text boxes on form two.
The txtONE - TWELVE belong to form1 and the Form2.Adj/Adv/Noun etcetera belong to Form2

Public Class Form1
    Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        txtONE.Text = Form2.AdjOne.Text
        txtTWO = Form2.NounOne
        txtTHREE = Form2.verbPTone
        txtFOUR = Form2.AdvOne
        txtFIVE = Form2.AdjTwo
        txtSIX = Form2.NounTwo
        txtSEVEN = Form2.NounThree
        txtEIGHT = Form2.AdjThree
        txtNINE = Form2.verbOne
        txtTEN = Form2.AdvTwo
        txtELEVEN = Form2.verbPTtwo
        txtTWELVE = Form2.AdjFour

Edited by __avd: Added [code] tags. For easy readability, always wrap programming code within posts in [code] (code blocks).

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Luc001
0

Hi,

You need to change them like this:

Public Class Form1
    Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Form2.AdjOne.Text = txtONE.Text 
        Form2.NounOne = txtTWO 
        Form2.verbPTone=txtTHREE 
        Form2.AdvOne=txtFOUR 
        Form2.AdjTwo=txtFIVE 
        Form2.NounTwo=txtSIX 
       Form2.NounThree= txtSEVEN  
        Form2.AdjThree=txtEIGHT 
        Form2.verbOne=txtNINE 
        Form2.AdvTwo=txtTEN 
        Form2.verbPTtwo=txtELEVEN  
        Form2.AdjFour=txtTWELVE
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.