Friday, October 21, 2011

Write the program for the Check-Box demonstration.


Write the program for the Check-Box demonstration.
Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM

using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace checkbox_10
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void TXTCHK_ParentChanged(object sender, EventArgs e)
        {

        }

        private void BTNOK_Click(object sender, EventArgs e)
        {
            if (checkBox1.Checked == true)
            {
                TXTCHK.Text = TXTCHK.Text +" "+ checkBox1.Text;
            }
            if (checkBox2.Checked == true)
            {
                TXTCHK.Text = TXTCHK.Text + " " + checkBox2.Text;
            }
            if (checkBox3.Checked == true)
            {
                TXTCHK.Text = TXTCHK.Text + " " + checkBox3.Text;
            }
            if (checkBox4.Checked == true)
            {
                TXTCHK.Text = TXTCHK.Text + " " + checkBox4.Text;
            }
            if (checkBox5.Checked == true)
            {
                TXTCHK.Text = TXTCHK.Text + " " + checkBox5.Text;
            }
        }
    }
}



Write the program for the Check-Box demonstration.
Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM 




Write the program for the Check-Box demonstration.
Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM



No comments:

Post a Comment

Popular 5 Posts Last 7 days