
08-04-2012, 08:53 PM
|
 |
Fabulous Florist
Forum Leader * Guru *
|
|
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,416
|
|
The property that gets you the parent returns a value of type Form, but you know it's a more specific type. When this happens, you have to cast. For example, say your parent form is called "BigForm". Also let's assume the property is MdiParent because I can't remember what it is. You'd write something like this:
Code:
Dim parent As BigForm = CType(Me.MdiParent, BigForm)
Dim value = parent.PropertyName
Also, assume "PropertyName" is the name of the property you wanted to access.
|
|