R
randy1200
I created the program below in VS2005. Form2 opens just fine, but it ignores
the call to SetDesktopLocation(). Any ideas why? It seems like a should be
trivial to specify a screen location where a Form2 would open.
Thanks...
//////////////////////////////////////
namespace TestDialogPosition
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.SetDesktopLocation(500, 500);
f2.ShowDialog();
}
}
}
the call to SetDesktopLocation(). Any ideas why? It seems like a should be
trivial to specify a screen location where a Form2 would open.
Thanks...
//////////////////////////////////////
namespace TestDialogPosition
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.SetDesktopLocation(500, 500);
f2.ShowDialog();
}
}
}