How to cancel any event in winforms?

后端 未结 2 1117
说谎
说谎 2021-01-18 05:07

I want to cancel an event from within that function scope.

Eg. I pressed button click event and on false validation, I want to cancel this event. Likewise i want to

2条回答
  •  鱼传尺愫
    2021-01-18 05:24

    private void SaveDataClicked(object sender, EventArgs args)
     {
       args.cancel = true;
     }
    

提交回复
热议问题