如题
点击一个按钮后 弹出一个计算器 可每次点出来 位置都不一样
应该加个什么代码?
System.Diagnostics.Process _Process = System.Diagnostics.Process.Start(@"F:\学习类\图书管理系统\LibraryManager\calc.exe");

解决方案 »

  1.   

    [System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "MoveWindow")]
    public static extern bool MoveWindow(System.IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
    System.Diagnostics.Process p = System.Diagnostics.Process.Start("");
    p.WaitForInputIdle();
    MoveWindow(p.MainWindowHandle, 100, 10, 300, 200, true);
      

  2.   

    我的代码是
     private void btnJIQ_Click(object sender, EventArgs e)
            {
                System.Diagnostics.Process _Process = System.Diagnostics.Process.Start(@"F:\学习类\图书管理系统\LibraryManager\calc.exe");
            }
    请原谅 我是初学者 2楼给的那些代码应该放在哪里?
    应该怎么用?