Share vb.net qbcolor

dinhthang417

New member
** Thuộc tính vb.net QBColor **

Thuộc tính QBColor của điều khiển nhãn trong VB.NET được sử dụng để đặt hoặc lấy màu nền của nhãn.Thuộc tính QBColor có thể được đặt thành bất kỳ giá trị QBColor hợp lệ nào.

Để đặt thuộc tính QBColor, hãy sử dụng cú pháp sau:

`` `
nhãn.qbcolor = qbcolor.red
`` `

Để nhận thuộc tính QBColor, hãy sử dụng cú pháp sau:

`` `
Nhãn.QBColor
`` `

Ví dụ mã sau đây cho thấy cách đặt thuộc tính QBColor của điều khiển nhãn thành màu đỏ:

`` `
Nhãn Dim như nhãn mới
nhãn.text = "Đây là một nhãn"
nhãn.qbcolor = qbcolor.red
`` `

** Bài viết tham khảo: ** [Điều khiển nhãn VB.NET] (https://www.tutorialspoint.com/vbnet/vbnet_label_control.htm

** Hashtags: **

* #vb.net
* #Nhãn
* #QBColor
* #Màu nền
* #tài sản
=======================================
**VB.NET QBColor Property**

The QBColor property of the Label control in VB.NET is used to set or get the background color of the label. The QBColor property can be set to any valid QBColor value.

To set the QBColor property, use the following syntax:

```
label.QBColor = QBColor.Red
```

To get the QBColor property, use the following syntax:

```
label.QBColor
```

The following code example shows how to set the QBColor property of a Label control to red:

```
Dim label As New Label
label.Text = "This is a label"
label.QBColor = QBColor.Red
```

**Reference Article:** [VB.NET Label Control](https://www.tutorialspoint.com/vbnet/vbnet_label_control.htm)

**Hashtags:**

* #vb.net
* #Label
* #QBColor
* #background Color
* #property
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top