Cannot access a disposed object?

前端 未结 6 1459
面向向阳花
面向向阳花 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:17

    create new instatnce if object is not available

    if(frmRGB==nullptr || frmRGB.IsDisposed==true ) { frmRGB= new Form(); }

提交回复
热议问题