DukeMeister44
Member
- Joined
- Sep 14, 2020
- Messages
- 6
- Programming Experience
- 1-3
Hi,
Does anyone know how to define the acceptable range of button presses in Visual Studio, say that I click a button ten times(depending on the upper limit is, 10 is an example) It should tell me that I have reached the limit of acceptable clicks before either returning a message or disabling the button with the user-code controlling the button, until another button enables it again, etc?
I want to define a range and either wrap this in a Try-Catch Statement or an if-statement or better to reduce the chances of my application crashing.
Does anyone know how to define the acceptable range of button presses in Visual Studio, say that I click a button ten times(depending on the upper limit is, 10 is an example) It should tell me that I have reached the limit of acceptable clicks before either returning a message or disabling the button with the user-code controlling the button, until another button enables it again, etc?
I want to define a range and either wrap this in a Try-Catch Statement or an if-statement or better to reduce the chances of my application crashing.
[FONT=courier new]Label1.text = Val(label1.text) + 1 'counts button clicks shown in label[/FONT]