Joseph
Joseph

Reputation: 125

usercontrols in .net

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

Answers (1)

Andrew Hare
Andrew Hare

Reputation: 351516

Use the ParentForm property:

Gets the form that the container control is assigned to.

Upvotes: 3

Related Questions