Results 1 to 2 of 2

Thread: Refering to UserControl from Form

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    US
    Posts
    1

    Refering to UserControl from Form

    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?

  2. #2
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    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.
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width