Click here to Skip to main content
15,885,216 members
Articles / Mobile Apps

How to Get a Reference to Parent Form from a Component

Rate me:
Please Sign up or sign in to vote.
2.82/5 (6 votes)
19 Oct 2007CPOL2 min read 63.6K   21  
Components don't have a .Parent property like controls do. Getting a reference to the instance of the parent form the component was on is very difficult.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
Dave Catherman is an application architect/lead developer for .NET applications. He has been developing database applications for many years and jumped on the .NET bandwagon early on. He is MCP certified in .NET Web Apps and Windows Apps and is pursuing MCSD.

Comments and Discussions