” fanidan “ checkbox ” mavzusidagi


Download 170.49 Kb.
bet8/15
Sana24.12.2022
Hajmi170.49 Kb.
#1057493
1   ...   4   5   6   7   8   9   10   11   ...   15
Dasturning kod qismi:


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 WindowsFormsApp5 {


public partial class Form1 : Form {


public Form1()
{
InitializeComponent();
}


private void Form1_Load(object sender, EventArgs e)
{
// Creating and setting the properties of label
Label l = new Label();
l.Text = "Select Status:";
l.AutoBize = true;
l.Location = new Point(233, 111);
l.Font = new Font("Bradley Hand ITC", 12);
// Adding lable to form
this.Controls.Add(l);


// Creating and setting the properties of CheckBox
CheckBox Mycheckbox = new CheckBox();
Mycheckbox.Height = 50;
Mycheckbox.Width = 100;
Mycheckbox.Location = new Point(229, 136);
Mycheckbox.Text = "Married";
Mycheckbox.Font = new Font("Bradley Hand ITC", 12);


// Adding checkbox to form
this.Controls.Add(Mycheckbox);


// Creating and setting the properties of CheckBox
CheckBox Mycheckbox1 = new CheckBox();
Mycheckbox1.Location = new Point(230, 198);
Mycheckbox1.Text = "UnMarried";
Mycheckbox1.AutoBize = true;
Mycheckbox1.Font = new Font("Bradley Hand ITC", 12);


// Adding checkbox to form
this.Controls.Add(Mycheckbox1);
}
}
}



Download 170.49 Kb.

Do'stlaringiz bilan baham:
1   ...   4   5   6   7   8   9   10   11   ...   15




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2025
ma'muriyatiga murojaat qiling