Instead of an Event, try...
Does the same thing. Just less code.VB Code:
'In the UserControl Public Function GetCalc() as long GetCalc = Val(Text1.Text) * Val(Text2.Text) End Function 'In the Program Private Sub Command1_Click() text1.text=UserControl1.GetCalc() End Sub
BTW... What does the program do ? Is it just a test app or something in particular ?




Reply With Quote