Results 1 to 2 of 2

Thread: Determining when a control is dropped into a container...

  1. #1
    ImpShial
    Guest

    Determining when a control is dropped into a container...

    I am building an ActiveX Control that has control resizing properties in it.

    What I want to know is how does the UserControl know when a user drops a control on it during design-time? I need to automatically run some code when a control is dropped onto the container.

    Any thoughts?

    Imp

  2. #2
    Lively Member BradBrening's Avatar
    Join Date
    Oct 2001
    Location
    Gillespie, IL
    Posts
    102

    Talking

    When the control is first placed in a container (whether it is a form or usercontrol, etc.) the UserControl fires the InitProperties event. Within the sub for this event you can initialize your properties. This is the only time this event is fired.

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