windows api
using System;
using System
using System
namespace WindowsApplication
{
public partial class Form
{
Form frm =null;
public Form
{
InitializeComponent();
this
}
const int WM_NCACTIVATE =
const int WA_ACTIVE =
[DllImport(
public static extern int SendMessage(IntPtr hWnd
private void button
{
frm = new Form();
frm
frm
frm
frm
SendMessage(this
}
void Form_Activated(object sender
{
SendMessage(this
if (frm != null)
SendMessage(frm
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/12596.html