H! everyone,
I have a problem about how to control my checkbox using button.
ex, if i clicked the button in the first time the checkbox will checked and then if i click in second time the checkbox will unchecked how can i do that?, and also i want to resize my checkbox ..can anybody help me out this problem?
Loading

Satyapriya NayakPosted Sep 2, 2011, 12:39 PM
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (checkBox1.Checked == false)
{
checkBox1.Checked = true;
}
else
{
checkBox1.Checked = false;
}
}
}
}
Thanks
If this post helps you mark it as answer
Black DiamondPosted Sep 2, 2011, 12:47 PM