Changing the sleep value through a form
I have the following in my code.
Code:
Public Declare Sub Sleep Lib "kernel32" (ByVal
dwMilliseconds As Long)
Sleep(1000)
I have a frequent need to change the sleep value, sometimes to 5000, sometimes 100. Its a pain to always go into the source, and manually edit the number, recompile, and create the app.
Is there a quick way of making this into a menu option in a form, so I can change this value on the fly, without having to go into the source each time?
Thanks.
Re: Changing the sleep value through a form
I guess you could have an option like that example......
In an option form or where ever you would like have a textbox and what ever the value is of the textbox then that is the sleep value.
Re: Changing the sleep value through a form
You could create a drop down menu with a variety of numbers on it so that the duration is selectable.
I would set a default of whatever you feel would be the most commonly used, and populate the menu with other options.