Here I have another Problem:
I created a user control called Personal details,
Then in the code for the button (called new person) I added this (among other things):
Code:
ObjPersonalDetails = New PersonalDetails
Later I asked the computer to:
Code:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
If ObjPersonalDetails IsNot Nothing Then
MsgBox(ObjPersonalDetails.TextBoxAddress.Text)
End If
End Sub
when I clicked the apropriat button:
the mesage box stated "11432 FM 957"
However In the code of personaldetails I included this:
Code:
Private Sub TextBoxAddress_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBoxAddress.MouseClick
MsgBox(TextBoxAddress.Text)
End Sub
When I clicked button1 msgbox: '11432 FM 957"
When I cliked on TextBoxAddress msgBox: ''
Does anyone know what is going on?
___________________________
In Him,
Joshua