|
-
Apr 11th, 2002, 12:27 PM
#1
Thread Starter
Hyperactive Member
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.
-
Apr 11th, 2002, 12:32 PM
#2
PowerPoster
Well
You have to perform a grow routine. If the form width is now three times as large as it was befor it was maximized, then increase the width of a textbox, etc... by the same factor.
This is only in theory, but it sounds right.
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Apr 11th, 2002, 12:37 PM
#3
Re: Well
Originally posted by James Stanich
You have to perform a grow routine. If the form width is now three times as large as it was befor it was maximized, then increase the width of a textbox, etc... by the same factor.
This is only in theory, but it sounds right.
It is right. Same goes for alignment, btw.
-
Aug 29th, 2012, 08:14 PM
#4
New Member
Re: Objects on form resize on maximize
 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?
Last edited by Neena20; Aug 30th, 2012 at 11:11 AM.
Reason: Belong to VB.net forum
-
Aug 30th, 2012, 01:10 PM
#5
Frenzied Member
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 .
-
Aug 30th, 2012, 01:59 PM
#6
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
-
Aug 30th, 2012, 02:31 PM
#7
Frenzied Member
Re: Objects on form resize on maximize
yep ,there is no other option rather than sizing in resize event of form in vb6 .
-
Aug 30th, 2012, 05:25 PM
#8
New Member
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.
-
Aug 30th, 2012, 09:28 PM
#9
PowerPoster
Re: Objects on form resize on maximize
Moderator: I believe this thread needs to be moved to the NET forum.
-
Aug 31st, 2012, 08:45 AM
#10
Frenzied Member
Re: Objects on form resize on maximize
yes, this thread really moved to vb.net section of vbforums.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|