>I have a label and a command button in a container class.I have the
>width of the command button set to this.parent.lblButton.width .
>When I put the class on a form and change the width of the label the
>command button does not change any suggestions.
>
>Thanks,
>matt
Firstly, this property setting will work in run-time and, moreover, it will not work reliable, just because it may happen that Commandbutton will get initiated before the Label and you will get error message that object not found. It's better idea to code it programmatically in Form.Init event.
Edward Pikman
Independent Consultant