PDA

Click to See Complete Forum and Search --> : very simple? calling activex control from vb


alex_read
Dec 19th, 2000, 10:20 AM
Here's the plan, I created a custom activex control in vb.
I then started an *.exe project & inserted the control on the form.

The question - how can I call on the controls on the activex control - i.e. if there's a text box on the activex control, how do I say something like:

Private sub command1_click()
Msgbox activexcontrol1.text1.text
End Sub

I can get a list of properties for the control, but can't see the text box in this! Thank you :D

Jerry Grant
Dec 19th, 2000, 10:47 AM
You will have to expose the child control properties required through a new property in the propertybag of your new control.

Use the ActiveX Ctrl Interface Wizard then the Property Page Wizard.

:cool:

alex_read
Dec 20th, 2000, 02:31 AM
Ahhhh, that's brilliant thanks Jerry!