Click here to Skip to main content
15,897,371 members
Articles / Programming Languages / C#

How to change the color of a button on btnclick event

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
14 Jan 2013CPOL 0  
For Window Form application :private void button3_Click(object sender, EventArgs e) { button3.BackColor = System.Drawing.Color.Black; }For Web Page :On Page level declare static variable:static bool Isdefault= true; protected void...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 14-Jan-13 22:57 Available Ask Dj
Updates in content. 323 changes had been made.
1 No 14-Jan-13 22:49 Available Ask Dj

License

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


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions