[RESOLVED] Move existing controls to new frame?
Clearly this is something that should be taken care of in the planning stage, but so far there have been at least three times that I had to remake whole racks of buttons, checkboxes and listboxes so that they would be in a frame and I could manage them as a group rather than one by one.
So is there any way to tell a control that it now belongs to a frame?
Re: Move existing controls to new frame?
All controls have a Container property. So at runtime its simply
Set Command1.Container = Frame1
At design time you can highlight all desired controls and basically cut and paste them to the Frame. Note that this method causes VB to change the existing value of the Index (for control arrays) and TabIndex properties.
Re: Move existing controls to new frame?
I am pretty sure that MZTOOLS can do what you want. I know that you can move code to a new form. It shouldn't be hard to move controls. You probably could copy/paste them into a frame.
Re: Move existing controls to new frame?
Quote:
Originally Posted by brucevde
Set Command1.Container = Frame1
<snip>
cut and paste them to the Frame.
Ah...
If only the rest of my life was so simple. Thanks.
Re: Move existing controls to new frame?
Quote:
Originally Posted by dglienna
I am pretty sure that MZTOOLS can do what you want.
I just got finished trying MZTools, pretty cool. Thanks.