below is a excerpt from a static class i use , i believe u can use the
Screen class
Screen aScreens = Screeen.AllScreens // a collection of all monitors
configured on ur computer
// so you should be able to do what you need
hope this helps
Dave
public static void MoveForm(Control oControl, NetTools.dvAlignMent
ePosition)
{
Screen[] aScreens = Screen.AllScreens;
Rectangle R = aScreens[0].Bounds;
int xPos = 0;
int yPos = 0;
if (ePosition == dvAlignMent.BottomRight)
{
oControl.Location = new Point(R.Width - oControl.Size.Width, R.Height -
oControl.Size.Height);
}
else if (ePosition == dvAlignMent.BottomLeft)
{
oControl.Location = new Point(0, R.Height - oControl.Size.Height);
}
else if (ePosition == dvAlignMent.BottomCenter)
{
xPos = (R.Width / 2 - oControl.Width / 2);
oControl.Location = new Point(xPos, R.Height - oControl.Size.Height);
}
// top stuff
else if (ePosition == dvAlignMent.TopRight)
{
xPos = R.Width - oControl.Width; //R.Height;
yPos = 0;
oControl.Location = new Point(xPos, yPos);
}
else if (ePosition == dvAlignMent.TopLeft)
{
xPos = 0;
yPos = 0;
oControl.Location = new Point(xPos, yPos);
}