Label1









How do I use Label1
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: frmThi.cs Copy
37         private void test()
38         {
39             strcheck = strdapan[j];
40             if (checkBox1.Text == strcheck && checkBox1.Checked)
41             {
42                 diem = diem + 1;
43             }
44             if (checkBox2.Text == strcheck && checkBox2.Checked)
45             {
46                 diem = diem + 1;
47             }
48             if (checkBox3.Text == strcheck && checkBox3.Checked)
49             {
50                 diem = diem + 1;
51             }
52             if (checkBox4.Text == strcheck && checkBox4.Checked)
53             {
54                 diem = diem + 1;
55             }
56             int diem1 = 0 + diem;
57             label1.Text = diem1.ToString();
58         }
File name: frmThi.cs Copy
59         private void getdapan()
60         {
61             strcheck = strdapan[j + 1];
62             if (checkBox1.Text == strcheck && checkBox1.Checked)
63             {
64                 diem = diem + 1;
65             }
66             if (checkBox2.Text == strcheck && checkBox2.Checked)
67             {
68                 diem = diem + 1;
69             }
70             if (checkBox3.Text == strcheck && checkBox3.Checked)
71             {
72                 diem = diem + 1;
73             }
74             if (checkBox4.Text == strcheck && checkBox4.Checked)
75             {
76                 diem = diem + 1;
77             }
78             int diem1 = 0 + diem;
79             label1.Text = diem1.ToString();
80         }
File name: frmThi.cs Copy
92         private void getdatakq()
93         {
94             ten = frmluachon.tenthisinh;
95             strcapdo1 = frmluachon.strcapdo;
96             strsoluongcauhoi1 = frmluachon.strsoluongcauhoi;
97             diemkq = label1.Text;
98             frmKetQuathuthu frmformkq = new frmKetQuathuthu();
99             frmformkq.frmformthi1 = this;
100             frmformkq.Show();
101         }
File name: frmThi.cs Copy
235         private void frmThi_Load(object sender, EventArgs e)
236         {
237             test();
238             dapan();
239             getData(iRows);
240             load();
241             label1.Hide();
242         }
File name: frmThi.cs Copy
249         private void label1_Click(object sender, EventArgs e)
250         {
251
252         }
File name: frmThongTinNhom.cs Copy
54         private void label1_Click(object sender, EventArgs e)
55         {
56             this.Close();
57         }
File name: frmThongTinNhom.cs Copy
69         private void label10_Click(object sender, EventArgs e)
70         {
71             this.Close();
72         }
File name: frmThongTinNhom.cs Copy
74         private void label11_Click(object sender, EventArgs e)
75         {
76             this.Close();
77         }
File name: frmThongTinNhom.cs Copy
79         private void label12_Click(object sender, EventArgs e)
80         {
81             this.Close();
82         }
File name: DialogUnity.cs Copy
26         public void setText(string oneline)
27         {
28             bitmapFont = new BitmapFont("Fonts/shop_font", "Fonts/shop_font_xml", label1);
29             bitmapFont.setText(oneline, 0, 15);
30             Transform[] fontTransforms = label1.GetComponentsInChildren(true);
31             for (int i = 0; i < fontTransforms.Length; i++)
32             {
33                 if (fontTransforms[i].gameObject.GetComponent() != null)
34                 {
35                     fontTransforms[i].gameObject.layer = LayerMask.NameToLayer("GUI");
36                     fontTransforms[i].gameObject.GetComponent().sortingLayerName = "GUI";
37                 }
38             }
39         }

Label1 115 lượt xem

Gõ tìm kiếm nhanh...