Questions tagged [autoscalemode]

The ContainerControl class and classes derived from it, such as Form, can automatically resize themselves and their contents according to either the current system font or the resolution of the display, measured in dots per inch (DPI). The AutoScaleMode enumeration defines the automatic scaling modes supported by these classes and their derived types. A control's current mode can be accessed through its ContainerControl.AutoScaleMode property.

In the .NET Framework versions 1.0 and 1.1, automatic scaling was supported using a simpler mechanism that always relied on the current system font. This mechanism is now obsolete but still supported for backward compatibility.

You can obtain the older scaling behavior by setting the AutoScale property of the containing Form to true, which will also implicitly set the ContainerControl.AutoScaleMode property to None. Conversely, setting the ContainerControl.AutoScaleMode property of a form will set AutoScale to false, enabling the newer scaling mechanism introduced with the .NET Framework version 2.0.

Different types of automatic scaling modes supported by Windows Forms.

Namespace: System.Windows.Forms

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

Syntax

 public enum AutoScaleMode

Reference:

AutoScaleMode

42 questions
0
votes
0 answers

Autoscaling with periodic slow requests

We're using the autoscaler on Heroku. Almost all the requests are very quick (0-500ms), but periodically we have an image upload that takes a long time (3000-9000ms). Autoscaling doesn't help at all in this case. Is there a best practice handle…
Joseph
  • 1,354
  • 12
  • 15
0
votes
0 answers

AutoScaling Azure PaaS - Functions or RunBooks?

I am evaluating pros / cons of Functions Vs RunBooks to Autoscale PaaS Services (HDI, AppService, SQLDB, SQLDataWarehouse, Batch etc). Scaling should happen based on schedule / workload. What's the best practice to go forward between both…
0
votes
0 answers

Autoscale doesn't work under specific conditions

I have a form that doesn't seem to respect Autoscale when the user has set something other than 100% in their display settings. Anyone have any idea what's happening here? Here are the specific conditions that I've narrowed it down to: WinForms…
MikeH
  • 4,242
  • 1
  • 17
  • 32
0
votes
0 answers

WinForms returns different scale factor values for Width and Height

I have a .NET WinForms dialog and I am using the AutoScaleFactor property of the Form in Form_Resize event to get the scale factor. If I set the scaling to 200% (for my 1920x1080 resolution), the scale factor should be Width=2,Height=2 but it comes…
A9S6
  • 6,575
  • 10
  • 50
  • 82
0
votes
1 answer

AutoScaleMode DPI and the PrintDialog

After enabling our aplication to use AutoScaleMode = DPI we are getting a strange issue when we show the PrintDialog at a DPI greater than 96. After the PrintDialog has been shown the text size on certain controls already showing is increased over…
stevehipwell
  • 56,138
  • 6
  • 44
  • 61
0
votes
3 answers

Windows form resized at runtime

I am having a problem with my Visual Studio. Form always change its size at runtime. The form's size when designed is 1732; 1005 as shown in the figure below: But when I run the program, the form's size changes to a smaller size (new size: 868;491)…
ThEpRoGrAmMiNgNoOb
  • 1,256
  • 3
  • 23
  • 46
0
votes
1 answer

Typical causes for SoftLayer autoscaling group to be scaling or suspended

When we deploy an autoscale group in SoftLayer, there are chances that we see an autoscale group has been scaling for hours or even days. Also we saw in other times they were suspended for some unknown reasons. Could you list a few typical reasons…
0
votes
1 answer

Winforms Designer Incompatible with Older Versions

I recently got a new computer and a copy of Visual Studios 2015. I opened some older projects (C#, winform, VS2010) and can edit the code just fine. However any changes to the UI in the designer, causes the entire UI to or not show part of the…
0
votes
1 answer

iPad running iPhone app - Which version?

If an iPhone app is installed onto an iPad what version of the iPhone app is run? (for auto scaling purposes). I only have access to an iPad Mini and it appears to display the iPhone 4 version of the app. However in a week I have a showcase where…
user5189059
0
votes
1 answer

C# AutoScaleMode Font, Bold controls don't scale

I'm developing a small application. I'm trying to use AutoScaleMode = Font and it works like a charm for all my intentions except one, I want some specific controls to have bold text, but then, they don't autoscale when the font size is changed. Is…
Noman_1
  • 473
  • 1
  • 6
  • 17
0
votes
0 answers

gnu plot errors: no usable data in this plot to auto-scale axis range

I'm new to gnu plot, and when I want to visualise my work result I met with the above problem. My data is in a file like data.dbl (.dbl means the data is in double precision) and there're 8 columns inside(I have used a transformation file to check…
Schawn
  • 57
  • 1
  • 9
-1
votes
2 answers

Can Amazon Auto Scaling Service work with Elastic Map Reduce Service?

since amazon web service need to pay, so just wanna ask ppl who had worked on it before i jump into it, and confirm some knowledge about it. Question one: In Amazon auto scaling service, it says can scale up and down instances. that does this…
jojo
  • 13,583
  • 35
  • 90
  • 123
1 2
3