Программирование - это просто
Advertisement
arrow C# arrow C# arrow C#. 6. . Timer
06.02.2023 .
1:
C#
Delphi
Web-
Excel-
.
C#. 6. . Timer E-mail
megabax   
02.12.2011 .
New Page 2

C#. 6. . Timer

.

Timer( ):

    C#.  6.    . Timer

 

, , Enabled = true; ( Interval) 500 ( ):

    C#.  6.    . Timer

Tick, :

private void timer1_Tick(object sender, EventArgs e)

        {

            if (label1.ForeColor == Color.Black) label1.ForeColor = Color.Red; else label1.ForeColor = Color.Black;

        }

:

    C#.  6.    . Timer

:

    C#.  6.    . Timer

500 , 0.5 .

, Enable   false, true:

        private void button1_Click(object sender, EventArgs e)

        {

            timer1.Enabled = false;

            button1.Enabled = false;

            button2.Enabled = true;

        }

 

        private void button2_Click(object sender, EventArgs e)

        {

            timer1.Enabled = true;

            button1.Enabled = true;

            button2.Enabled = false;

        }

. :

    C#.  6.    . Timer

.


, ,    "Microsoft Visual Studio 2010", Microsoft


 

 

( 02.12.2011 . )
 
« .   . »
 
© 2023 Программирование - это просто
Joomla! - , GNU/GPL.
© 2005-2008 Joom.Ru - Joomla!
Design by Mamboteam.com | Powered by Mambobanner.de
  .