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

inherited form with anchor property problem

P: n/a
hi all,

i have a base form (i.e. form1), there is a button with "bottom, right"
anchor property...
when i create a form2 which inherited from form1 with different size...
the button keep on the same position and doesn't change... ^_^

how can i fix this?
is it inherited items can't change position?

cheers,
colin

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
When you inherit the form you inherit its class definition, not any values
you may set to and instantiated object of form1.

you would need to set the anchor properties of the new object.

OHM
"Colin Lai" <co******@grandion.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
hi all,

i have a base form (i.e. form1), there is a button with "bottom, right"
anchor property...
when i create a form2 which inherited from form1 with different size...
the button keep on the same position and doesn't change... ^_^

how can i fix this?
is it inherited items can't change position?

cheers,
colin

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.