标签:c#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace 窗体最前端 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Form2 frm = new Form2(); frm.Show(); } } }
将form1的 topmost设置为 true
工程以及效果
http://yunpan.cn/csJANhJ3BVueY 提取码 3917
标签:c#
原文地址:http://blog.csdn.net/shinepan/article/details/40298847