Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Can't get a timer to stop fucking ticking - used timer1.stop

Ok, this is another feature to my application that records 4 keystrokes to create a shortcut combination.

You click a button that starts a timer or the "recording", the timer waits for your input using this code: http://www.myanmaritresource.info/t138-a...rogramming

When done, it tells you that you entered a certain key and appends it to a textbox and variable.

However, I cannot get timer 1 of 4 to stop ticking, I've disposed of it, disabled it, stopped it, nothing seems to work. The actual code from the link uses a goto loop to after a key has been pressed, I think I can't break out if it.

I've told it to exit sub, call other subs, I'm just not sure.

THE CODE DOES WORK, however when you click record button # 2, and then press a key on your keyboard, you need to do it twice, as the first time changes the value of record 1 and the second time does what it was supposed to, so now you have duplicates, e.g:

If you wanted 1+2+3+4 as the key strokes, if you put 1 in for the first value, that is fine, but if you want 2 for the second it goes like this.

? = undefined value

Step 1 (finished recording 1): 1+?+?+?
Step 2 (record number 2, but changes value of 1): 2+?+?+?
Step 3 (press the key again to change value 2): 2+2+?+?

I really hope you understand.

Thanks!
Try and search on www.codeproject.com, i think that site will help you alot with that kind of problem you have.
I joined and have only received one reply so far, here is the link:

http://www.codeproject.com/Answers/37733...op#answer1

If anyone could please elaborate as to what she/he means it would be helpful.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by EffexionOct 23, 2017 08:57 AM 7 207 Oct 23, 2017 08:57 AM
Last Post: Effexion
[.NET] by KevnFeb 10, 2017 02:42 PM 6 246 Feb 10, 2017 02:42 PM
Last Post: Narwin
[.NET] by NoobiewNov 6, 2016 01:56 PM 16 491 Nov 6, 2016 01:56 PM
Last Post: teamghs