lock a windows form
how can i lock a windowsform on the screen so that no one can drag it over the screen?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Dec 3, 2009, 10:44 PM
Here is Code For That.
if my answer helps you than dont forget to check "do you like this answer" check box please :)
int xposition;
int yposition;
private void Form1_Move(object sender, EventArgs e)
{
this.Location = new Point(xposition, yposition);
}
private void Form1_Load(object sender, EventArgs e)
{
xposition = this.Location.X;
yposition = this.Location.Y;
}