PDA

Click to See Complete Forum and Search --> : Refering to UserControl from Form


CrazedWolverine
Aug 7th, 2001, 04:10 PM
This may or may not be a simple question to answer. I have created an activex control that does instant messaging using winsock controls placed on the UserControl. I have also added several other standard forms to the activex control to allow users to enter messages, choose files to send, etc.

My problem is that when I show a form to enter a message, I then need to refer back to the UserControl to send it using the Winsock controls.

The simple question...... If you have an ActiveX Control with a standard form, can you refer to the UserControl object or other controls placed on it from the standard form?

SoftwareMaker
Aug 9th, 2001, 09:22 PM
Yes you can Crazed Wolfverine

Once your usercontrol is embedded on your form, it becomes part of your form and you can set a reference to it just like any other control

The usercontrol object should appear as part of your intellisense drop-down list and also in your Object Browser as part of your project.