How I can save controls created in run time in Windows Forms

后端 未结 3 733
一整个雨季
一整个雨季 2020-12-12 03:30

here\'s my code

private void make_Book(int x, int y, string name)
{
    #region Creating Book

    // this code is initializing the book(button)
    Button b         


        
3条回答
  •  渐次进展
    2020-12-12 03:49

    when you call make_Book method you can save input parameters to database or some other storage currently your application using. When application start you can load all the buttons by calling make_Book method with values saved on your application storage.

    • Save and Restore Setings of a .NET Form using XML
    • Load and save objects to XML using serialization
    • Windows Forms User Settings in C#

提交回复
热议问题