” fanidan “C# dasturlash tilida checkbox komponentasi yordamida dasturlash


Download 194.03 Kb.
bet13/17
Sana08.01.2022
Hajmi194.03 Kb.
#238755
1   ...   9   10   11   12   13   14   15   16   17
Bog'liq
2 5266975522444807039

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 194.03 Kb.

Do'stlaringiz bilan baham:
1   ...   9   10   11   12   13   14   15   16   17




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