Knowing window handle from an control itself

  • Thread starter Thread starter qingxun
  • Start date Start date
Q

qingxun

Hi!

I am writing a custom control. Is there a way for my control to refer
to the form (that hosted this control) handle programmatically?

What I wanted to do is to set form property when the control properties
changes. How could I refer to form during design time when the form is
unknown?

Is there something like :

ContainerForm.Height = 50 ?



Thanks

Bob
 
I am writing a custom control. Is there a way for my control to refer
to the form (that hosted this control) handle programmatically?

Check out the control's 'FindForm' method.
 
Back
Top