Visual Magic
Visual Magic

Reputation: 509

Usercontrol interacting with form...?

I am working on a project and I wonder if I can get a UserControl to *Interact* with the form it is in (e.g. get values such as Me.Size.Height or run subroutines like Me.Show() ) and I have no clue how to do that. I don't know if it's even possible.

Upvotes: 1

Views: 49

Answers (1)

Gavin
Gavin

Reputation: 516

see http://msdn.microsoft.com/en-us/library/system.windows.forms.containercontrol.parentform(v=vs.110).aspx

use the ParentForm property of your user control

Upvotes: 3

Related Questions