About 24,000,000 results
Open links in new tab
  1. How do I center a window on the screen in C# & WinForms?

    Dec 12, 2015 · use the CenterToScreen () Method in the constructor of the form class. Use Form.CenterToScreen () method. On system with two monitors the form will be centered on …

  2. Position and resize a form - Windows Forms | Microsoft Learn

    May 6, 2025 · Learn how to set the size and position of a form in .NET Windows Forms and Visual Studio. The size and location can either be set in the Visual Studio designer or through …

  3. How to make form appear on center screen and not sizable on …

    In this video i will show you how to make form appear on "CenterScreen" and not "Sizable" on visual studio.

  4. C# Helper: Center a form on the screen at run time in C#

    You can center a form at design time by setting its StartPosition property to CenterScreen. Note that you cannot do this in the form's Load event handler because the form's position is already …

  5. c# - How can i set the Form to be in the Center of the Screen?

    Nov 13, 2014 · You can use StartPosition property of Form objects. It determines the position of a form. Set it's value to CenterScreen if you want your form to open in the center of the screen

  6. How to move a form to center position - Coderwall

    Feb 25, 2016 · Just set the form's StartPosition property to CenterScreen. form.Location = new Point( (Screen.PrimaryScreen.Bounds.Size.Width / 2) - (form.Size.Width / 2), …

  7. How to programmatically maximize, minimize and center the form

    In this article, we will see how to programmatically center the form using the Screen.PrimaryScreen.Bounds property. We will also use the FormWindowState to Maximize …

  8. Form.CenterToScreen Method (System.Windows.Forms)

    The CenterToScreen method uses the following priority list to determine the screen used to center the form: The Owner property of the form. The HWND owner of the form. The screen that …

  9. How to Open WinForms in Centre Screen When Running the ... - YouTube

    In this tutorial, you'll learn how to center your Windows Forms (WinForms) application on the screen when it runs in Visual Studio using C#. We'll walk you through the steps to set the...

  10. .net - How is it possible to centre a form in C# - Stack Overflow

    Jun 16, 2011 · Use the StartPosition property of the form, change it to CenterScreen. In Winforms, there is a property of a Form control called StartPosition; it's an enumeration, which includes …

  11. Some results have been removed
Refresh