Basic Inheritence Question

  • Thread starter Thread starter Eric Lemmon
  • Start date Start date
E

Eric Lemmon

Hi,

I created a base form and several forms inheriting from the base. I just
found that all the forms need to be wider, so I increased the width of the
base form. After recompiling, none of the inherited forms adopted this new
width.

Is there any way to force the inherited forms to reflect any changes made in
the base form? Also, can I make the Size property of the base property
Read-Only, so that the inherited forms have no control over their size?

(If possible, I'd like to avoid changing the Windows Form Designer generated
code.)

Thank you,

Eric
 
For the inhertited forms, make alter this in the designer code.

Me.ClientSize = MyBase.Size


--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
* "One Handed Man \( OHM - Terry Burns \) said:
For the inhertited forms, make alter this in the designer code.

Me.ClientSize = MyBase.Size

Or completeley remove the line...
 
Yep that'll do it as well, however, leaving it in is more explicit.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
Well, that was easy. Thanks for the quick replies, Terry & Herfried.

Out of curiosity, is there a way to do this without altering the inherited
forms, only the base form?

Thank you,

Eric
 
Back
Top