I need to write a Windows Application in C# but I don't know how to do some things. I'm very fresh in C# Programming.
What should do my app ?
- First step : I need to do from my radiobuttons or from something else colorful icons, these icon should random light up and I must to power off this with corresponding buttons (for exaple red radiobutton = red button).
- Second step : There is a timer, which start counting my reflex from lit button to power off this button.
What I've done ?
Implemented radio buttons, button and two labels
Responsible for every component clicked empty methods
Which program I'm using ?
- Visual Studio 2008 Express
What I don't know how to do ?
How to implement timer and set counting to check my reflex
How to set radio button automatically checked in random order and turn this off with other button
How to show in label my timer
My source code :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Ling;
using System.Text;
using System.Windows.Forms;
namespace App{
public partial class Form1 : Form{
public Form1(){
InitializeComponent();
}
private void label1Click(object sender, EventArgs e){
}
private void radioButton1_CheckedChanged(object sender, EventArgs e){
}
private void radioButton2_CheckedChanged(object sender, EventArgs e){
}
private void radioButton3_CheckedChanged(object sender, EventArgs e){
}
private void GreenButton_Click(object sender, EventArgs e){
GreenButton.Backcolor = Color.gray;
}
private void RedButton_Click(object sender, EventArgs e){
RedButton.Backcolor = Color.gray;
}
private void BlueButton_Click(object sender, EventArgs e){
BlueButton.Backcolor = Color.gray;
}
private void label2Click(object sender, EventArgs e){
}
I will be very thankful for every kind of help <3