An object-oriented programming language developed by Microsoft that can be used in .NET.
Hi @Peter Volz ,
When Button1.Enabled = False, the code will exit Sub WndProc immediately when it reaches this line.
If you don't have a mandatory requirement for the state of Button1 in this method, you can delete this line.
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.