View Single Post
  #1 (permalink)  
Old August 22nd, 2006, 08:35 PM
JPOhlman JPOhlman is offline
Registered User
Join Date: Aug 2006
Location: Schulenburg, TX, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Text Box .text Property Displays conflicting Valus

 Here is the Problem:

I created a user control called PersonalDetails,

Then in the code for the main form for a button (called 'new person') I added this code:
ObjPersonalDetails = New PersonalDetails

Later I asked the computer to:
    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        If ObjPersonalDetails IsNot Nothing Then
        End If
    End Sub

when I clicked the right button:
the mesage box stated "11432 FM 957"
However In the code of personaldetails I included this:

Private Sub TextBoxAddress_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBoxAddress.MouseClick

    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,
Reply With Quote