restore objects location to default, after change to normal windows state
I trying to restore the object(controls) location to the default(same as form load) location after I change the window state from maximize to normal. there is simple method that I can save all the object location and after the state changes it will restore to the saved properties?
Use a TableLyoutPanel and add your controls inside the cells. Set the dock property of the TableLayouPanel to Fill.No need to add any code for changing the control location.
https://msdn.microsoft.com/en-us/library/dd492143.aspx https://www.codeproject.com/Tips/842418/Designing-the-Layout-of-Windows-Forms-using-a
链接地址: http://www.djcxy.com/p/29200.html上一篇: 如何通过工厂以扭曲协议发送数据