Skip to content

Code for buttons

Elias De la Cerda

Asked Mar 30, 2006, 8:42 AM EST1 answer
Share
LinkedInX
Hello everyone,
I'm a student and new to C#. I need to create a form with five buttons; red, green, blue, yellow, and orange. When a button is clicked it should change the color of a panel to the respective color of the button. Additonally, I need a progress bar (with say increments of 10) whith upper and lower limits; ie 0-100 with two panels which diplays when the upper and lower limits are reached.
Thus far I have created the buttons and panels.
Any help would be greatly appreciated.
Elias

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hai,

    To change the color of the panel use the backcolor property in the button click event.

    For the progressbar take a timer control...and write the code for progress bar inside that.....
    0