Hello,
I am creating and ActiveX user control. It is a title bar with exit minimize maximize buttons. Does anyone know how i can interact(send commands) with the main form that the user control will be on? Is there a keyword for it?
Thanks.
Hello,
I am creating and ActiveX user control. It is a title bar with exit minimize maximize buttons. Does anyone know how i can interact(send commands) with the main form that the user control will be on? Is there a keyword for it?
Thanks.
In the UserControl:
VB Code:
[color=blue]Public[/color] TheContainer as Form [color=blue]Private Sub[/color] Command1_Click() TheContainer.Caption = "Changed Caption" [color=blue]End Sub[/color]
In your Application:
Form_Load()VB Code:
[color=blue]Private Sub
Set UserControl11.TheContainer = Me
[color=blue]End Sub[/Highlight]
[/Highlight]
Sorry,
In your application:
VB Code:
[color=blue]Private Sub[/color] Form_Load() Set UserControl11.TheContainer = Me [color=blue]End Sub[/color]