Visual Inheritance newbie question

  • Thread starter Thread starter Tim Pauly
  • Start date Start date
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
 
as long as they are publicly accessable then yes.. if they are private then
no... (inheritance is based on public, private, or friend types)
 
* (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'.
 
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
 
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
 
Back
Top