Basic Inheritence Question

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
 
O

One Handed Man \( OHM - Terry Burns \)

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
 
H

Herfried K. Wagner [MVP]

* "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...
 
O

One Handed Man \( OHM - Terry Burns \)

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
 
E

Eric Lemmon

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
 

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