MIT Guru-lk

MIT Guru-lk

Thursday, May 24, 2012

Checked box in C#

Posted by Mit Guru  |  at  2:11 AM No comments


This program is show how to use check box in c#.net. According to this program if you tick the course (Check Box) and click the Tell Me Button it show check courses in bellow Label.

C#.net Code for Checkbox

Download Project



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 checkedbox
{
    public partial class Form1 : Form
    {
      public Form1()
    {
    InitializeComponent();
    }
    private void tellmeButton_Click(object sender, EventArgs e)
    {

    string result = "";

    if (radcheckBox.Checked)
    {
      result += "\nRapid Application";
    }
    if (dbmscheckBox.Checked)
    {
     result += "\nData Base Management";
    }
    if (technocheckBox.Checked)
    {
     result += "\nTechnology Management";
    }
    if (pccheckBox.Checked)
    {
     result += "\nPC Application";

    }

    resultLabel.Text = "Your Cause is:." + result;

    }

    }

}


About the Author

Write admin description here..

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

Related posts

0 comments:

© 2013 MIT Tutorials. WP Theme-junkie converted by BloggerTheme9
back to top