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

Recommended Answers

All 2 Replies

What did you expect it to do? Do you get any errors?

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.