# TXBarcodeControl.BarcodeType Property

> Gets or sets the type of barcode that is rendered.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.Barcode`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXBarcode.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXBarcode.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Barcode > TXBarcodeControl.BarcodeType Property
- **384 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/barcodetype-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/barcodetype-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/barcodetype-property/llms-full.txt

---

### Description

Gets or sets the [type of barcode](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/barcodetype/enumeration/llms-full.txt) that is rendered.

### Syntax

```csharp
public BarcodeType BarcodeType { get; set; }
```

```vbnet
Public Property BarcodeType As BarcodeType
```

### Examples

The following example uses `TXBarcodeControl.BarcodeType` to configure barcode type as part of the txbarcode control workflow. The change is then applied to the active document or user interface.

```csharp
tXBarcodeControl.BarcodeType = TXTextControl.Barcode.BarcodeType.QRCode;
tXBarcodeControl.Update();
```

```vbnet
tXBarcodeControl.BarcodeType = TXTextControl.Barcode.BarcodeType.QRCode
tXBarcodeControl.Update()
```

### Remarks

On changing this property all control settings are retained, if they are valid for the conditions of the new barcode type. Otherwise, the [Text](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/text-property/llms-full.txt) and [UpperTextLength](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/uppertextlength-property/llms-full.txt) properties are reset to the default values of the new barcode type.

---

## Nearby

- **Previous:** [TXBarcodeControl.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/backcolor-property/llms-full.txt)
- **Next:** [TXBarcodeControl.BarcodeTypeSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/barcodetypesettings-property/llms-full.txt)
