WPF General

Posted on 2017-05-26 16:15  KA卡尔特人头狼  阅读(101)  评论(0编辑  收藏  举报

double dScreenWid = System.Windows.SystemParameters.PrimaryScreenWidth;
double dScreenHei = System.Windows.SystemParameters.PrimaryScreenHeight;

this.Left = dScreenWid - 200;
this.Top = dScreenHei - 200;

System.Diagnostics.Process.Start(@"C:\Program Files\Microsoft Office\Office14\EXCEL.EXE");    //调用该命令,在程序启动时打开Excel程序