View Single Post
  #1 (permalink)  
Old March 30th, 2008, 09:48 AM
angelboy angelboy is offline
Friend of Wrox
 
Join Date: Dec 2006
Location: , , .
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hosted Form of Component

Hi,
I created a class derived from Component Class.
i want to Add a Method that returns the Form that hosts my component.
this method called FindForm();
for example supose i add a new instance of myComponent into the Form1.
Now, i want when i write this code :

Form hostedForm =myComponent1.FindForm();

the hostedForm must be Form1.

what code i must write inside the FindForm Method?

regards