private void JumpTo_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("IEXPLORE.EXE","http://www.baidu.com/login"); IntPtr hwnd = FindWindow("IEXPLORE.EXE", ""); if (hwnd != IntPtr.Zero) { MessageBox.Show("找到!"); } else { MessageBox.Show("没找到!"); } } [DllImport("user32.dll")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
110,539
社区成员
642,577
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧