[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern int SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int y, int Width, int Height, int flags);

private void MainForm_Load(object sender, EventArgs e)
{
SetWindowPos(this.Handle, -1, 0, 0, 0, 0, 1 | 2);

}

posted on 2019-02-24 15:18  文龙再现  阅读(264)  评论(0编辑  收藏  举报