473,395 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Maximize Button and Automatic scaling ?

Rob
If you allow the user to Maximize a form, is there a way to automatically
enlarge each control on the form in the same proportion ?
Jun 27 '08 #1
4 4817
On May 30, 1:59 pm, "Rob" <ro...@yahoo.comwrote:
If you allow the user to Maximize a form, is there a way to automatically
enlarge each control on the form in the same proportion ?
That's done by setting control's "Dock" property to a position which
you want, and also set "Anchor" property to fit your controls when the
form is resized or maximized.

Thanks,

Onur Güzel
Jun 27 '08 #2
On May 30, 6:59 am, "Rob" <ro...@yahoo.comwrote:
If you allow the user to Maximize a form, is there a way to automatically
enlarge each control on the form in the same proportion ?
You can play around with Anchor to set how the controls resize with
the form. It usually doesn't end up looking right from a UI
perspective as you just give bigger icons and don't really make good
use of the new screen space (imo).

Thanks,

Seth Rowe [MVP]
Jun 27 '08 #3
"Rob" <ro***@yahoo.comschrieb:
If you allow the user to Maximize a form, is there a way to automatically
enlarge each control on the form in the same proportion ?
Are you using Windows Forms or Windows Presentation Foundation (WPF)?

If you are using the latter, take a look at the 'LayoutTransform' and
'RenderTransform' properties.

In Windows Forms, you can use docking and anchoring, but you cannot scale
the controls smoothly.

However, note that resizing the controls in the way you describe often
reduces usability because controls can get too large.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jun 27 '08 #4
Rob
Thanks... actually it is a touch screen app... so bigger is better here...
but I am using Windows forms...
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:OO**************@TK2MSFTNGP03.phx.gbl...
"Rob" <ro***@yahoo.comschrieb:
>If you allow the user to Maximize a form, is there a way to automatically
enlarge each control on the form in the same proportion ?

Are you using Windows Forms or Windows Presentation Foundation (WPF)?

If you are using the latter, take a look at the 'LayoutTransform' and
'RenderTransform' properties.

In Windows Forms, you can use docking and anchoring, but you cannot scale
the controls smoothly.

However, note that resizing the controls in the way you describe often
reduces usability because controls can get too large.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: w.p. | last post by:
I use code below: 1) frame receive too many maximize events on create and on close child window - why? 2) how to catch key events for wxMDIParentFrame ? 3) childWin.SetSize() in OnMaximize send...
1
by: Mohan | last post by:
Hi, I am C# Beginner. I want to develop an Form Based application, form should contain the Minimize box and Help Button. When I tried, this.MaximizeBox = false;
5
by: Mrozu | last post by:
Hi When I maximize a form in VB.Net 2003 the bottom of the form gets hidden by the start bar (so my status bar is invisible). How can I get my app to maximize to the usable screen area above...
1
by: neeraj | last post by:
Hi people's I developed one MDI application with one MDI form and 2 child forms, form. Border style of first child forms set as Fixed3D and Window State set as normal (like dialog Box) and...
13
by: teric2 | last post by:
Hi Everyone! I have a form that opens from a another form set as a dialog box via a command button. I have tried about everything I can think of to make this form maximize when it opens. I've used...
5
by: David Jackson | last post by:
Hello, I have a WinForms app (VS.NET 2005 + SP1) where the FormBorderStyle of the main form is set to FixedDialog. I've added a NotifyIcon, so have set the form's MinimizeBox property to...
2
by: rannajeesharma | last post by:
i got the following code from the forums but it not give the same effect like clicking maximize button <script language="javascript"> window.moveTo(0,0); window.resizeTo(screen.width,...
3
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
I give my user a button to change the properties of the size property of maximize screen size. How can I programmatically cause the maximize screen function to happen after changing the property...
3
convexcube
by: convexcube | last post by:
Hi everyone, Now that I've found a way to disable the ribbon etc. I need to disable the application maximize button. I have looked at this post and implemented it, but it disables the close and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.