i have error in radiobutton

Apr 19 2015 8:13 PM
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Checkers_Game_Play
{
public partial class CheckersBoard : Form
{
//your color
// 0 is red
int yourcolor = 0;
//draw your buttons
int drawmy1 = 49;
int drawmy2 = 58;
int drawmy3 = 42;
//draw enemy buttons
int drawenemy1 = 1;
int drawenemy2 = 10;
int drawenemy3 = 17;
//music and sound
int playmusic = 1;
//Dim playsound As Integer = 1
//current hightlight
int currenthightlight;
//current selected button
int currentselectedbutton;
bool selectedbutton = false;
//count clicks
int countclicks = 0;
//get empty places up the selected button
int getemptyplaces1;
int getemptyplaces2;
//get 2 first selecte - get pair to compare
int getpair;
int fn;
int sn;
//test
bool fromleft;
bool fromright;
//time
int counttime;
int min;
bool showmin;
//test
int getenemy;
// Dim enemyloc As Integer = 100
int enemytomove;
bool callcommove;
int morebuttons = 0;
//drag
bool drag;
int mousex;
int mousey;
//KING TEST
int firstselectedking;
int enemykinglocation;
//end game timer
int endgamecomputer;
int endgamehuman;
public CheckersBoard()
{
InitializeComponent();
}
private void buttonExit_Click(object sender, EventArgs e)
{
this.Close();
}
private void CheckersBoard_KeyDown(object sender, KeyEventArgs e)
{
//exit
if (e.KeyCode == Keys.Escape)
{
this.Close();
}
}
private void CheckersBoard_Load(object sender, EventArgs e)
{
//get selected buttons
if (ControlForm.RadioButton2.Checked == true)
{
yourcolor = 1;
}
else
{
yourcolor = 0;
}
//get the selected board
//load red buttons on bottom
if (yourcolor == 0)
{
foreach (object p in Panel1.Controls)
{
if (p is PictureBox)
{
}
}
}
}
}
}
i want to know whats wrong with my codes

Answers (13)