控制弹出窗体的位置
这是一个小问题,不过也不能不解决!
方法如下:
例子
unlock unlockform=new unlock();
unlockform.StartPosition=FormStartPosition.Manual;
unlockform.Left=this.Width/2-unlockform.Width/2;
unlockform.Top=this.Height/2-unlockform.Height/2;
unlockform.ShowDialog();
方法如下:
例子
unlock unlockform=new unlock();
unlockform.StartPosition=FormStartPosition.Manual;
unlockform.Left=this.Width/2-unlockform.Width/2;
unlockform.Top=this.Height/2-unlockform.Height/2;
unlockform.ShowDialog();
-----------------------------------------------------------------