inherited form with anchor property problem

C

Colin Lai

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
 
O

One Handed Man [ OHM ]

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
 

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