Visual Inheritance newbie question

T

Tim Pauly

Suppose I use Visual Inheritance to create a base form with some
controls on it, and a child form which inherits from it. Is it
possible to modify the properties of the inherited controls in the
child form either with the visual designer or programmatically? For
example, to change the location and size of the inherited controls?

thanks
 
B

Brian Henry

as long as they are publicly accessable then yes.. if they are private then
no... (inheritance is based on public, private, or friend types)
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (Tim Pauly) scripsit:
Suppose I use Visual Inheritance to create a base form with some
controls on it, and a child form which inherits from it. Is it
possible to modify the properties of the inherited controls in the
child form either with the visual designer or programmatically? For
example, to change the location and size of the inherited controls?

Yes, if the modifier of the control is <> 'Private'.
 
O

One Handed Man [ OHM# ]

Also . . Protected or Protected Friend.

OHM

Brian said:
as long as they are publicly accessable then yes.. if they are
private then no... (inheritance is based on public, private, or
friend types)

Regards - OHM# OneHandedMan{at}BTInternet{dot}com
 
T

Tim Pauly

Thanks to all who replied to my posting.

I just noticed that inherited controls cannot be deleted. But that
shouldn't be a problem because I could hide a control if needed.

thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top