Cannot access a disposed object?

前端 未结 6 1473
面向向阳花
面向向阳花 2020-12-16 04:50

I have a countdown Timer form - on the first form the user will enter the countdown time - warning times, end message, etc. There are also two Radio buttons (Max/Min) and d

6条回答
  •  醉酒成梦
    2020-12-16 05:26

    The solution is simple that instantiate the object of the called form in the button click event e.g.

    private void buttonSetting_Click( object sender, EventArgs e )
        {
            ***_setting = new SettingWindow();***  //When I need to show the settings window
    
            _setting.Show();
        } 
    

提交回复
热议问题