Best way to bind Windows Forms properties to ApplicationSettings in C#?

前端 未结 1 1976
醉梦人生
醉梦人生 2021-01-08 00:31

In a desktop application needing some serious re-factoring, I have several chunks of code that look like this:

private void LoadSettings()
{
    WindowState          


        
相关标签:
1条回答
  • 2021-01-08 00:56

    If you open your windows form in the designer, look in the properties box. The first item should be "(ApplicationSetting)". Under that is "(PropertyBinding)". That's where you'll find the option to do exactly what you want.

    0 讨论(0)
提交回复
热议问题