Hello,
I've done quite a bit of VB6 programming but I'm new to ActiveX controls.
Let me try and explain what I'm doing:
I've written a User Control that performs an operation on a string and
displays the result.
I would like to pass a string to the user control from a text box on the
form. I don't want to have the text box on the ActiveX control.
Can anyone offer a suggestion about how I do this? I really am stuck.
Thanks,
Jon.
J French - 07 Mar 2004 18:48 GMT
>Hello,
>
[quoted text clipped - 8 lines]
>
>Can anyone offer a suggestion about how I do this? I really am stuck.
RaiseEvent
eg in the UserControl :
Public Event Notify( S As String )
....
RaiseEvent Notify( "Hullo Parent Form" )
Lindsay - 07 Mar 2004 19:27 GMT
Set up a Sub in your user control that gets the name of a textbox. Eg:
Public Sub TextStuff(New_Text as TextBox)
Dim T as String
T=New_Text.Text
etc...
End Sub
> Hello,
>
[quoted text clipped - 12 lines]
>
> Jon.