c# center button in windowstate

101 views Asked by At

The following problem: I need to center a button in my Form. How do I do this?

Current code:

static void Main(string[] args) {
    Form scherm;
    scherm = new Form();
    scherm.WindowState = FormWindowState.Maximized;
    button1 = new Button();
} 
0

There are 0 answers