学渣
己所不欲,勿施于人
摘要: 让窗体最前置的话,可以使用:[DllImport("user32.dll")][return: MarshalAs(UnmanagedType.Bool)]static extern bool SetForegroundWindow(IntPtr hWnd);这样调用:SetForegroundWindow(this.Handle); //当前窗体是this或者调用:this.Activate(); //当前窗体是this但是这两种方法都会激活窗体,且前者不能在最小化时使用。如果使用:this.TopMost=true;this.TopMost=false;的话,在下一次操 阅读全文
posted @ 2013-04-20 14:57 西米阿耶 阅读(1173) 评论(0) 推荐(0) 编辑