当前位置:网站首页>C form click event did not respond

C form click event did not respond

2022-07-05 09:13:00 Meng Meng Mu Xi

C# New people , I want to be a translator to practice my hand , Find out Click There was no response to the incident ...

One 、 Event writing completed ( Want to use MessageBox Test it , It didn't respond )

Two 、 Event binding complete

however , Click still no response ....

3、 ... and 、 Find the problem (MouseDown Drag and drop the title bar in the event )

 

 

Found through debugging , My program process MouseDown After the event , No more click, I don't understand it yet , After removal, it can operate normally click event .

It reminds me of Android Of onEventTouch Method , When onEventTouch The return value is true when , Then the event will stop here , Consumption complete . It may have a similar mechanism !

New people ask for advice , If there is any mistake, please point out ! Thank you very much !

原网站

版权声明
本文为[Meng Meng Mu Xi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140538292755.html