Click here to Skip to main content
15,902,275 members
Home / Discussions / C#
   

C#

 
GeneralIIS Management [modified] Pin
Eitan O5-Dec-08 21:00
Eitan O5-Dec-08 21:00 
Questionhyperlink or verbs Pin
netJP12L4-Dec-08 10:04
netJP12L4-Dec-08 10:04 
AnswerRe: hyperlink or verbs Pin
Christian Graus4-Dec-08 11:31
protectorChristian Graus4-Dec-08 11:31 
GeneralRe: hyperlink or verbs Pin
netJP12L4-Dec-08 12:54
netJP12L4-Dec-08 12:54 
GeneralRe: hyperlink or verbs Pin
Christian Graus4-Dec-08 13:13
protectorChristian Graus4-Dec-08 13:13 
QuestionHow to send more than one parameter to constructor using initializeData attribute Pin
s196675m4-Dec-08 9:49
s196675m4-Dec-08 9:49 
AnswerRe: How to send more than one parameter to constructor using initializeData attribute Pin
Christian Graus4-Dec-08 11:32
protectorChristian Graus4-Dec-08 11:32 
Questiontimer problem Pin
nlowdon4-Dec-08 9:03
nlowdon4-Dec-08 9:03 
Evening all !

I've created a new timer in a form's constructor to make a button on the form flash.
For some reason the program is stepping through the code for the timer tick ONCE and thats it ?
Would appreciate if someone could take a look at it and tell me whats wrong, it's porbably something trivial and i've just been looking at the code too long now !

Thanks in advance

Neil

public Form1()
        {
            InitializeComponent();

            buttonTimer = new Timer();
            buttonTimer.Tick += new EventHandler(button_Tick);
            buttonTimer.Interval = (50);
            
            populate.BackColor = Color.Black;
            populate.ForeColor = Color.Orange;

            buttonTimer.Start();
        }

        void button_Tick(object sender, EventArgs e)
        {
            if (populate.BackColor == Color.Orange)
            {
                populate.BackColor = Color.Black;
                populate.ForeColor = Color.Orange;
            }

            if (populate.BackColor == Color.Black)
            {
                populate.BackColor = Color.Orange;
                populate.ForeColor = Color.Black;
            }
        }
}

AnswerRe: timer problem Pin
Kristian Sixhøj4-Dec-08 9:15
Kristian Sixhøj4-Dec-08 9:15 
GeneralRe: timer problem Pin
Guffa4-Dec-08 20:38
Guffa4-Dec-08 20:38 
AnswerRe: timer problem Pin
Giorgi Dalakishvili4-Dec-08 9:16
mentorGiorgi Dalakishvili4-Dec-08 9:16 
AnswerRe: timer problem Pin
EliottA4-Dec-08 9:32
EliottA4-Dec-08 9:32 
GeneralRe: timer problem Pin
PIEBALDconsult4-Dec-08 17:35
mvePIEBALDconsult4-Dec-08 17:35 
AnswerRe: timer problem Pin
ricmil424-Dec-08 9:51
ricmil424-Dec-08 9:51 
GeneralRe: timer problem Pin
Dave Kreskowiak4-Dec-08 10:57
mveDave Kreskowiak4-Dec-08 10:57 
GeneralRe: timer problem Pin
Guffa4-Dec-08 20:40
Guffa4-Dec-08 20:40 
AnswerRe: timer problem Pin
_Maxxx_4-Dec-08 16:35
professional_Maxxx_4-Dec-08 16:35 
Questiondatatable.readxml problem Pin
Eli Nurman4-Dec-08 8:45
Eli Nurman4-Dec-08 8:45 
AnswerRe: datatable.readxml problem Pin
Andrew Rissing4-Dec-08 9:05
Andrew Rissing4-Dec-08 9:05 
GeneralRe: datatable.readxml problem Pin
Eli Nurman4-Dec-08 9:18
Eli Nurman4-Dec-08 9:18 
GeneralRe: datatable.readxml problem Pin
Andrew Rissing4-Dec-08 10:22
Andrew Rissing4-Dec-08 10:22 
QuestionReading files over network asynchronously Pin
CodingYoshi4-Dec-08 8:20
CodingYoshi4-Dec-08 8:20 
AnswerRe: Reading files over network asynchronously Pin
Le centriste4-Dec-08 8:36
Le centriste4-Dec-08 8:36 
AnswerRe: Reading files over network asynchronously Pin
Giorgi Dalakishvili4-Dec-08 8:40
mentorGiorgi Dalakishvili4-Dec-08 8:40 
GeneralRe: Reading files over network asynchronously Pin
CodingYoshi4-Dec-08 11:40
CodingYoshi4-Dec-08 11:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.