摘要: WPF编程学习——窗口 http://www.cnblogs.com/libaoheng/archive/2011/11/18/2253751.html全面介绍了WPF窗口属性的应用,及如何在程序中保存上次窗口数据以待下次启动复用等特别功能。 阅读全文
posted @ 2012-08-22 16:53 JunBird 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 发现窗体的位置只能通过StartPosition属性设置,而这个属性只提供了5种位置选项,很不够!今天在网上找到了一个解决的方法,如下:int x= System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width/2;int y=System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height /2;this.SetDesktopLocation(x,y);注释:System.Windows.Forms.Screen.PrimaryScreen.WorkingAr 阅读全文
posted @ 2012-08-22 16:37 JunBird 阅读(349) 评论(0) 推荐(0) 编辑