Objects on form resize on maximize
When the user maximizes the form, how do i have the objects also resize to fit the form?
Example. if i maximize the form the frame enlarges, but the command buttons dont enlarge they just stay the same size but get reposisitioned on the form when it gets enlarged.
Re: Objects on form resize on maximize
Quote:
Originally Posted by
Neena20
I have a similar situation with windows form maximized and All the controls on my form should scale based on the size of the form when the form is maximized. Should I do in the form_resize event?
Thanks,
neena
I have a flow layout panel,multiple controls on this panel, report viewer (of rdlc report) on another panel as one of the many controls on the form.Should I do in the form_resize event?
Re: Objects on form resize on maximize
In vb.net there is dock property when frame size will resize automatically button will resize with respect to frame .but you are out of luck in vb6 .at design time .doing something like that .
Re: Objects on form resize on maximize
Is this in .NET or VB6? ... makes a HUGE difference.... if we're talking about VB6, then you'll need to write a resize routine as previously explained... but in .NETyou can sue a combination of the Anchor and Dock properties to achieve the resizing.
-tg
Re: Objects on form resize on maximize
yep ,there is no other option rather than sizing in resize event of form in vb6 .
Re: Objects on form resize on maximize
Thanks for the reply.I am doing it in vb.net.I already tried the dock and anchor properties,but,these are not enough,I also need to verify,calculate, and provide the width and height of the controls like how we do for in the run time...in case of maximized form. I apologize,I had moved this to vb.net forum.I posted it in VB forum as I have seen related previous questions about the controls resize.
Re: Objects on form resize on maximize
Moderator: I believe this thread needs to be moved to the NET forum.
Re: Objects on form resize on maximize
yes, this thread really moved to vb.net section of vbforums.