Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Nothing happens when I double click on the timer tool on the form

What I have tried:

Nothing appears on the lightning icon, only a tick.
Posted
Updated 6-Apr-22 2:34am
Comments
Richard MacCutchan 6-Apr-22 8:29am    
No one can possibly answer this. We have no idea what form you are referring to or what is on it. Please use the Improve question link above, and add complete details of what is not working.

1 solution

Try to give better information in future, it makes it easier for us, and quicker for you to get an answer to your question.

Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

But I think you have dropped a Timer control on your form, and when you click to highlight it then press the "lightning button" in the Properties pane (which is the called "Control Events" button) all you see is "Tick".
If so, that's correct - the only Event the Timer control raises is Tick when it reaches the timeout so you can handle it. Double click that and it'll create an event handler in your form code to let you do something on a regular interval.

You can get exactly the same thing by double clicking the Timer control on the bottom of the design view.

If that's not happening, you probably need to restart Visual Studio - it certainly works for me!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900