|
-
Jun 30th, 2001, 11:10 AM
#1
Thread Starter
New Member
How to receive form resize event in Activex Control
I want to create a control for the use of developers once placed on form it will resize all the controls according to form height and width (size) at run time but i am clueless about how can i recieve form resize event in my control so that i can take appropraite action i.e. resize all controls on the form
Thanks in advance
-
Jul 6th, 2001, 01:36 PM
#2
Junior Member
The best method is to declare a module level variable like
Private Withevents frm as form
and then in the ReadProperties Event of the UserControl you can say
set frm=UserControl.Parent
you can write your code in the frm_resize event . this event will be fired only after the original forms resize event is called.
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
|