Thursday, August 27, 2009

Windows Programming - Set form Location

using System;
using System.Windows.Forms;
using System.Drawing;
class myfrm : Form
{
}
class Program
{
static void Main(string[] args)
{
myfrm f = new myfrm();
Size s = new Size(100, 100);
f.Size = s;

Point p = new Point();
p.X = 500;
p.Y = 500;
f.Location = p;
f.ShowDialog();
}
}

No comments:

Post a Comment