S
Shan1986
Guest
Hallo,
I have 2 classes like this
Public Class Person
Public Property firstName As String
Public Property lastName As String
Public Property NickName As String
End Class
Public Class Contact
Public Property NickName As String
Public Property email As String
Public Property Phone As String
Public Property Address String
End Class
for example i have a combo box where i can select the first name of a person, then i get the nickname by following
Dim nick as string = cType(combobox.SelectedItem, Person).NickName
Now how do i get the address or email for the person (nick) from class Contact?
thanks.
Continue reading...
I have 2 classes like this
Public Class Person
Public Property firstName As String
Public Property lastName As String
Public Property NickName As String
End Class
Public Class Contact
Public Property NickName As String
Public Property email As String
Public Property Phone As String
Public Property Address String
End Class
for example i have a combo box where i can select the first name of a person, then i get the nickname by following
Dim nick as string = cType(combobox.SelectedItem, Person).NickName
Now how do i get the address or email for the person (nick) from class Contact?
thanks.
Continue reading...