激活另一个进程

[DllImport("user32.dll")]
        public static extern void SetForegroundWindow(IntPtr hwnd);
        [DllImport("user32.dll")]
        public static extern IntPtr FindWindow(String classname, String title);
        private void btn_OpenMini_Click(object sender, EventArgs e)
        {
            try
            {
                Process.Start(AppDomain.CurrentDomain.BaseDirectory.Trim() + "Mini.exe");              
                SetForegroundWindow(FindWindow(null,"彩铃DIY迷你首页"));
            }
            catch
            { }
        }
原文地址:https://www.cnblogs.com/94cool/p/1725116.html