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 ? 4 4827
On May 30, 1:59 pm, "Rob" <ro...@yahoo.co mwrote:
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
On May 30, 6:59 am, "Rob" <ro...@yahoo.co mwrote:
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]
"Rob" <ro***@yahoo.co mschrieb:
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 'LayoutTransfor m' and
'RenderTransfor m' 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/>
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******** ******@TK2MSFTN GP03.phx.gbl...
"Rob" <ro***@yahoo.co mschrieb:
>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 'LayoutTransfor m' and
'RenderTransfor m' 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/>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 additional maximize event (?)
4) wxMDIChildFrame is initially visible!
5) sorry for english :)
6) wxPython 2.5.4.1 (Windows)
################################################################
import wx
|
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;
|
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 the start bar?
Thx Mrozu
|
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 maximize button set
false minimize button set false.
My first child form name like FrmClient
I have one another child form which Form Border Style property set as
Fixed3D and
|
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 the
dcmd.maximize
in the "on open" and "on load" event procedures of the form. Also tried using it in the code of the command button that opens the form. Nothing seems to force this pesky thing to maximize.
What am I doing wrong?
Here's the...
| |
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
true;
This enables the form's minimize button, obviously, and the NotifyIcon stuff
is working.
|
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, screen.height);
</script>
Please let me know if there is any other method to maximize web form that give same effect like clicking maximize button on browser.
|
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 so the new max screen property
will be realized? Right now I have to tell the user to unmaximize the screen
and remaximize the screen to have the property take effect. :o(
Thanks!
Bob
|
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 minimize buttons as well. Is there a simple command I can use to disable just this button or any way I can adapt the cited post to do just that?
Kind regards,
Ken.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |