I'm currently working on a group project that involves an address book (working in VisualBasic.Net 2003). I have one form (frmData) in which the user enters data. I want to transfer it to a label on my other form (frmAddress). Currently, on frmAddress:
Public strName As String Public DataForm As New frmData Private Sub lblContact_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblContact.SelectedIndexChanged Me.lblContact.Text = strName End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim AddressForm As New frmAddress AddressForm.strName= Me.txtName.Text End Sub
If someone has a suggestion (I obviously have no idea what I'm doing and need lots of help), please reply. I'm very new at this.