|
-
Oct 19th, 2001, 01:35 PM
#1
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
-
Oct 19th, 2001, 05:00 PM
#2
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|