Meena S
Meena S

Reputation: 47

how can I set a form at top left side of a screen

I have to develop a windows application so I Like When execute my project want to show a form top-left side of a screen. I don't know how to do this please help me ....

Upvotes: 2

Views: 5623

Answers (2)

Hetal Rupareliya
Hetal Rupareliya

Reputation: 387

you have to add code in your form method like..

public Form1()

    {
        InitializeComponent();
        this.StartPosition = FormStartPosition.Manual;
        this.Location = new Point(0, 0);
    }

its work for me...

Upvotes: 6

Beldi Anouar
Beldi Anouar

Reputation: 2180

In your form load put this line :

this.Location = new Point(0, 0);

Upvotes: 0

Related Questions