CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: BigEd781

Search: Search took 0.06 seconds.

  1. Replies
    9
    Views
    8,867

    Re: Face difficulties on timer

    ...You probably do not have a control named 'label1'. That was just an example.

    Honestly, I think you need to take a step back and spend some time learning the fundamentals.
  2. Replies
    9
    Views
    8,867

    Re: Face difficulties on timer

    You did not do it like I said. You have some minor errors, and a namespace with a name of "Timer_2" is kind of weird. Here is one problem:


    _timer.Tick += timer_Tick;

    You are assigning a...
  3. Replies
    9
    Views
    8,867

    Re: Face difficulties on timer

    That would be a problem in your code. Why don't you post it so I can take a look. You should get used to handling errors like this so that you can learn the ins and outs of writing C# applications.
  4. Replies
    9
    Views
    8,867

    Re: Face difficulties on timer

    It's not too bad. Here is a sample off the top of my head:



    class Form1 : Form
    {
    Timer _timer;
    int _tickCount;

    public Form1( )
  5. Replies
    9
    Views
    8,867

    Re: Face difficulties on timer

    Well, have you tried yet? It is pretty simple. The Timer class exposes an event called "Tick" which fires on every tick of the timer. So, set the timer duration, hook into the Tick event, start...
Results 1 to 5 of 5





Click Here to Expand Forum to Full Width

Featured