H
hzgt9b
Using VS2005, VB.NET, I have am developing a windows app that has a
login form. This login form can be called by several classes. When the
login form is able to verify that the supplied credentials are valid
then I want to pass an object (System.Net.Credential) back to the
calling/parent class. All the classes that call the login form have a
public property named "_oCredentials" that could be used to store
validated credentials.
My problem is knowing what class opened/called the login form and
getting the code in the form to store the validated credentials back
in the correct parent...
Hope this makes sense. Your input appreciated.
FYI, here is how I am calling the form now (from any of the "parent"
classes)
'Gather domain credentials
Dim frmLogin As New frmDomainLogin
frmLogin.ShowDialog(Me)
login form. This login form can be called by several classes. When the
login form is able to verify that the supplied credentials are valid
then I want to pass an object (System.Net.Credential) back to the
calling/parent class. All the classes that call the login form have a
public property named "_oCredentials" that could be used to store
validated credentials.
My problem is knowing what class opened/called the login form and
getting the code in the form to store the validated credentials back
in the correct parent...
Hope this makes sense. Your input appreciated.
FYI, here is how I am calling the form now (from any of the "parent"
classes)
'Gather domain credentials
Dim frmLogin As New frmDomainLogin
frmLogin.ShowDialog(Me)