Board index » delphi » How To get The Parent FORM of a control

How To get The Parent FORM of a control

Heya All

How can you get the form a control is on?

TIA

S

 

Re:How To get The Parent FORM of a control


Quote
Sean Mathews wrote:
> Heya All

> How can you get the form a control is on?

By default the Owner property of all the components points to the form they are
on.

Krasimir Stoyanov

Re:How To get The Parent FORM of a control


On Thu, 27 Nov 97 01:29:07 GMT, killra...@globalserve.net (Sean

Quote
Mathews) wrote:
>How can you get the form a control is on?

Have a look at these functions:
function GetParentForm(Control: TControl): TForm;
function ValidParentForm(Control: TControl): TForm;

Peter

-------------------------------------------------
The PixelGraphicLibrary for Delphi 2 and Delphi 3
http://members.aol.com/beyersdorf/

Other Threads