I am passing the Myform through frm which doesn't contain controls. But to get all textbox control from oForm in Class Module1. What I have to do.Code:Public Class Myform 'This Form Contains Two Controls TextBox1 And TextBox2 'Calling the Procedure Call GetReferanceForm(Me) End Class Public Class Module1 Public Sub GetReferanceForm(frm as Form) dim oForm as New Form oForm =frm 'Now Here oFrom is Defined by Frm which MyForm Reference 'Here I am not getting Controls Like TextBox1,TextBox2 oForm.TextBox1 'not Getting End Sub
Please help me.
Thanking You
Debasis Bag




Reply With Quote