Results 1 to 2 of 2

Thread: How to receive form resize event in Activex Control

  1. #1

    Thread Starter
    New Member
    Join Date
    May 1999
    Location
    Gurgaon, Haryana, India
    Posts
    1

    Question 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

  2. #2
    Junior Member
    Join Date
    Mar 2000
    Location
    India, Visakhapatnam
    Posts
    19
    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.
    Dinesh
    reply to
    <[email protected]>

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