[DllImport("user32.dll",EntryPoint="BringWindowToTop")] private static extern int BringWindowToTop(int hWnd);BringWindowToTop(FrmMain.Handle.ToInt32());
[DllImport("user32.dll",EntryPoint="MoveWindow")] public static extern int MoveWindow(int hwnd, int x, int y, int nWidth, int nHeight, int bRepaint) MoveWindow(FrmMain.Handle.ToInt32(),170,0,screen.Width-170,screen.Height,0);
MoveWindow(StrToInt(Edt2.Text),170,0,screen.Width-170,screen.Height,False);
[DllImport("user32.dll",EntryPoint="BringWindowToTop")]
private static extern int BringWindowToTop(int hWnd);BringWindowToTop(FrmMain.Handle.ToInt32());
public static extern int MoveWindow(int hwnd, int x, int y, int nWidth, int nHeight, int bRepaint)
MoveWindow(FrmMain.Handle.ToInt32(),170,0,screen.Width-170,screen.Height,0);
BringWindowToTop(FrmMain.Handle); (2)
MoveWindow(StrToInt(Edt2.Text),170,0,screen.Width-170,screen.Height,False);(3)C#我也不懂我帮你解释一下这个吧 (1):我想是得到窗体FrmMain的父窗体
(2):我想是把窗体FrmMain 至顶
BringToFront()是把窗体放到最前面(3):我想是移动吧
BringWindowToTop(FrmMain.Handle); (2)
MoveWindow(StrToInt(Edt2.Text),170,0,screen.Width-170,screen.Height,False);(3)C#我也不懂我帮你解释一下这个吧 (1):我想是得到窗体FrmMain的父窗体
(2):我想是把窗体FrmMain 至顶
BringToFront()是把窗体放到最前面(3):我想是移动吧