当前位置:编程学习 > C#/ASP.NET >>

请问这样窗口靠前,属性是什么

我想使弹出的form2窗口,始终靠前,但同时可以在另外的窗口操作,在另外的窗口操作的时候,form2不要最小化,不要掉下去,始终靠前

就像播放器那样,靠前


请问,该怎么设置属性 --------------------编程问答-------------------- 等待答案 --------------------编程问答--------------------

Form2 fr2 = new Form2();
fr2.ShowDialog();

或设置
Form2 fr2 = new Form2();
fr2.Show();
f2.TopMost=True;

--------------------编程问答-------------------- Form2 fr2 = new Form2(this);
fr2.Show();

--------------------编程问答--------------------
引用 3 楼 caozhy 的回复:
Form2 fr2 = new Form2(this);
fr2.Show();


有这种构造函数吗? --------------------编程问答-------------------- 写错了。。。
Form2 fr2 = new Form2();
fr2.Show(this);
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,