hi all..
i want to ask about screen resolution and control resize
how can i make my control, like button, textbox, etc resize automatically within any screen resolution?
have you guy ever hear about active resize from vbgold.com?
www.vbgold.com/Downloads.shtml
i want my vb net application look like that
so if we use ANY resolution, the application we create will not messed
it can strecth
i already try dock, anchor, panel, etc, but it cannot work.
are you guy have clue or answer for this?
thanx for the attention
[ASK]Control Resize VS Screen Resolution
Page 1 of 13 Replies - 1180 Views - Last Post: 16 May 2012 - 06:18 PM
Replies To: [ASK]Control Resize VS Screen Resolution
#2
Re: [ASK]Control Resize VS Screen Resolution
Posted 26 March 2012 - 12:36 PM
There is no 'automatic' about resizing your form to your resolution.
You can react to the Form.Resize event, and manually loop through all your controls to resize and relocate them.
If you take a little bit of thought about your resizing and repositioning it can all happen dynamically.
The first control (lets say a button) is resized to 10% of the form.ClientArea.Width.
Then the other 20 buttons are sized to be the same as the first.
Then you position your second groupbox to an offset from the first groupbox
And so on. There is nothing fancy about it, just brute force of starting at the upper-left corner control and sliding everything over and down by a percentage of the overall form size.
This is one of the reasons I'm making the transition from WinForms to WPF where this is handled REALLY REALLY nice.
You can react to the Form.Resize event, and manually loop through all your controls to resize and relocate them.
If you take a little bit of thought about your resizing and repositioning it can all happen dynamically.
The first control (lets say a button) is resized to 10% of the form.ClientArea.Width.
Then the other 20 buttons are sized to be the same as the first.
Then you position your second groupbox to an offset from the first groupbox
groupbox2.Location = new point (groupbox1.Bounds.Right + 5, groupbox.Location.Y);
And so on. There is nothing fancy about it, just brute force of starting at the upper-left corner control and sliding everything over and down by a percentage of the overall form size.
This is one of the reasons I'm making the transition from WinForms to WPF where this is handled REALLY REALLY nice.
#3
Re: [ASK]Control Resize VS Screen Resolution
Posted 16 May 2012 - 04:03 PM
This is an older post, but for others to find a different approach, please take a look here:
http://www.dreaminco...1&#entry1315118
http://www.dreaminco...1&#entry1315118
#4
Re: [ASK]Control Resize VS Screen Resolution
Posted 16 May 2012 - 06:18 PM
or just set the ANCHOR property of the control...
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|