What are you trying to do? A user control should try and be naive to where it's 
being hosted - I typically have these communicate to the form hosting it by 
using events and properties.

From: [email protected] [mailto:[email protected]] On 
Behalf Of Joseph Clark
Sent: Wednesday, June 23, 2010 5:31 PM
To: ozDotNet
Subject: Re: Get main form instance from usercontrol

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.findform.aspx
 should work?


On Thu, Jun 24, 2010 at 10:25 AM, Anthony 
<[email protected]<mailto:[email protected]>> wrote:
What method do i need to use to the get the main instance  of a form from a 
usercontrol?

The main form is of type FormMain but how do i access the instance from a 
usercontrol?  If i use me.parent..this would only give the instance of the 
container object. Using vb.net<http://vb.net> winforms

Is your website being 
IntelliXperienced?<http://www.intellixperience.com/signup.aspx>
regards
Anthony (*12QWERNB*)
Is your website being IntelliXperienced?



Reply via email to