Reputation: 125
When we place a usercontrols on a form in windowsform application , then how it is possible to get the form on which the user control is placed?
Upvotes: 0
Views: 70
Reputation: 351516
Use the ParentForm
property:
Gets the form that the container control is assigned to.
Upvotes: 3