plugsForm.ActiveForm.Width=300
plugsForm.ActiveForm.Heigh=400

解决方案 »

  1.   

    just some suggestions:wait until plugsForm.exe is up, use FindWindow API to find the window handle for plugsForm.exe, then use SendMessage to send it a WM_SIZE message
      

  2.   

    just some suggestions:wait until plugsForm.exe is up, use FindWindow API to find the window handle for plugsForm.exe, then use MoveWindow API to resize the form
      

  3.   

    just some suggestions:wait until plugsForm.exe is up, use FindWindow API to find the window handle for plugsForm.exe, then use MoveWindow API to resize the form
      

  4.   

    先用FindWindow找到那個窗體
    然後用WM_SIZING 其中wParam =0 lParam指向一個RECT結構
      

  5.   

    呵呵,我也想知道,收藏先。我那天试了关于Process的,但是死机了,不敢轻易的测试Process
      

  6.   

    我来了,答案也就来了  :)[DllImport("user32.dll",EntryPoint="FindWindow")]
    private static extern int FindWindow(string _ClassName, string _WindowName);[DllImport("user32.dll", EntryPoint = "MoveWindow")]
    static extern bool MoveWindow(int hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);//调用:
    System.Diagnostics.Process.Start("notepad.exe");
    int iWin = FindWindow("notepad", null);
    MoveWindow(iWin, 0, 0, 100, 200, true);
      

  7.   

    to panyee(快乐王子):
    可是我测试的时候没有成功呀?
    是不是你的代码有什么注意的地方
      

  8.   

    不可能吧
    using System.Runtime.InteropServices;
      

  9.   

    panyee的代碼是對的
    MoveWindow(int hWnd
    MoveWindow(IntPtr hWnd
    估計是筆誤
      

  10.   

    sorry, i am so late,score belongs to all