Set Form Width : Form Properties « GUI Windows Forms « C# / CSharp Tutorial






using System.Drawing;
using System.Windows.Forms;
   
class FormProperties
{
     public static void Main()
     {
          Form form = new Form();
   
          form.Width          *= 2;
   
          Application.Run(form);
     }
}








23.5.Form Properties
23.5.1.Change Form ClientSizeChange Form ClientSize
23.5.2.Form.StartPosition
23.5.3.Form with Maximize BoxForm with Maximize Box
23.5.4.Form without MinimizeBox and MaximizedBoxForm without MinimizeBox and MaximizedBox
23.5.5.Set form background colorSet form background color
23.5.6.Set form captionSet form caption
23.5.7.Set Form sizeSet Form size
23.5.8.Set Form Height
23.5.9.Set Form Width
23.5.10.Set FormBorderStyle
23.5.11.Center Form to the screenCenter Form to the screen
23.5.12.Resize redraw form: get/set Form styleResize redraw form: get/set Form style
23.5.13.Form Bounds SettingForm Bounds Setting
23.5.14.Form Opacity setting
23.5.15.Use Form.DialogResult