[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
{ }
}