如何在上次关闭位置启动程序窗体
如何在上次关闭位置启动程序窗体!!!!!
[解决办法]
关闭时保存窗体位置,启动时读取。
[解决办法]
public MainForm(){ GeometryFromString(Properties.Settings.Default.WindowGeometry, this);}
[解决办法]
C#中使用Setting保存用户自定义窗体位置及大小
很早在codeproject上看到的!
[解决办法]
关闭时保存窗体位置,启动时读取。
[解决办法]
设置Application属性的Location
然后在关闭函数里面写Properties.Settings.Default.Save();