By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,239 Members | 1,503 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,239 IT Pros & Developers. It's quick & easy.

Basic Inheritence Question

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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

"Eric Lemmon" <er*************@hotmail.com> wrote in message
news:O8**************@TK2MSFTNGP10.phx.gbl...
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


Nov 21 '05 #2

P: n/a
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
For the inhertited forms, make alter this in the designer code.

Me.ClientSize = MyBase.Size


Or completeley remove the line...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3

P: n/a
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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2o************@uni-berlin.de...
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
For the inhertited forms, make alter this in the designer code.

Me.ClientSize = MyBase.Size


Or completeley remove the line...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4

P: n/a
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

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:u7**************@TK2MSFTNGP09.phx.gbl...
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

"Eric Lemmon" <er*************@hotmail.com> wrote in message
news:O8**************@TK2MSFTNGP10.phx.gbl...
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



Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.