RE: Visual Basic 6 or Visual Basic .NET?
I think you should add member functions to user controls, like this...
This is UserControl2's member function. Assume it has a Checkbox named Check1
Public Function GetCheck1Caption() As String
GetCheck1 = Check1.Caption
End Function
And in Form code you just... (uc2Control is a UserControl2)
'blahblah...
Whatever=uc2Control.GetCheck1Caption
'blahblah...
I know it's a little bit troublesome (even strange). Actually, if you use VB.Net, this can be easier with its full OOP support.
|