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 Radio_button_count
{
public partial class Form1 : Form
{
int radiobtn_count = 0;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (radioButton1.Checked == true)
radiobtn_count++;
textBox1.Text = radiobtn_count.ToString();
}
}
}
If this post helps you mark it as answer
Thanks
Saanjhi, if this helps please login to Mark As Answer. | Alert Moderator