about Timer

T

Tony Johansson

Hello!

Assume I drag a Timer into my Form class. In this Form class I also create
an event handling method.
The timer object has set the correct property Elapsed and a Interval and the
Form has set Enabled = true;

Now to my question is it possible to do this in the same class.

//Tony
 
I

Ignacio Machin ( .NET/ C# MVP )

Hello!

Assume I drag a Timer into my Form class. In this Form class I also create
an event handling method.
The timer object has set the correct property Elapsed and a Interval and the
Form has set Enabled = true;

Now to my question is it possible to do this in the same class.

//Tony

to do what?
 
C

Cor Ligthert[MVP]

Hi Tony

I hope that I understand what you mean, in my idea most probably

RightClick on the Timer in your form
Choose properties
Look at that flash in the top and select that
Select the at the Tick, the method you have created in the combobox
(as you don't do that the method is created by simple clicking on that)

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top