How to call back Usercontrol in VB?

sjchin

Newcomer
Joined
Mar 21, 2003
Messages
22
May i know if i develop a user control, which will call to other form, how can i assign value back to existing user control? Assume after calling to show other form from user control, i wish to run a function or sub in user control, may i know how to do that?
 
Last edited:
The common way is to overload the forms constructor.

Class myNewForm
Private mParentControl as Control

Public Sub New(CallbackParent as Control)
mParentControl = CallbackParent
End Sub

End Class
 
Back
Top