Question: Hello. I am using Visual Basic in Visual Studios. I am trying to use the Cancel Button property on my form to stop the application

Hello. I am using Visual Basic in Visual Studios.

I am trying to use the Cancel Button property on my form to stop the application from drawing my line, however when I click escape it does not seem to click the button to stop my drawing. It makes the error noise but there is no error. I have KeyPreview set to True. I also have the Cancel Button set to the button that has the code to stop the drawing. The button that does this is invisible (i.e. visible is set to False). How can I fix my Cancel Button? Or should I go about it another way?

Thank you for your time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!