VISUAL BASIC

INTRODUCTION TO NET

BASICS OF NET FRAMEWORK

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ property on windows forms, gets or sets the size and location of the form on the windows desktop.
A
Clientsize
B
Size
C
DesktopBounds
D
Bounds
Explanation: 

Detailed explanation-1: -If you want to set the size and location of a form, you can use the DesktopBounds property to size and locate the form based on desktop coordinates or use the Bounds property of the Control class to set the size and location of the form based on screen coordinates.

Detailed explanation-2: -Windows. Forms. Control. These include properties such as Font, ForeColor, BackColor, Bounds, ClientRectangle, DisplayRectangle, Enabled, Focused, Height, Width, Visible, AutoSize, and many others.

Detailed explanation-3: -Automatic scaling in action At run time, the actual resolution is stored in the CurrentAutoScaleDimensions property.

Detailed explanation-4: -The default size of a form is generally a width and height of 800x500 pixels. The initial location, when the form is displayed, depends on a few different settings. You can change the size of a form at design time with Visual Studio, and at run time with code.

Detailed explanation-5: -Integration namespace is defined in ‘WindowsFormsIntegration. dll’ which currently ships in the WinFX SDK, not in the standard redist. Therefore, the file will be found in ‘FilesAssemblies3ˇ.

Detailed explanation-6: -The StartPosition property is used to set where the windows form will be positioned when it first appears on the screen.

Detailed explanation-7: -The AutoSizeMode property specifies how a control sizes itself to its content.

There is 1 question to complete.