CoreSuite.DecimalBox
1.0.0
dotnet add package CoreSuite.DecimalBox --version 1.0.0
NuGet\Install-Package CoreSuite.DecimalBox -Version 1.0.0
<PackageReference Include="CoreSuite.DecimalBox" Version="1.0.0" />
<PackageVersion Include="CoreSuite.DecimalBox" Version="1.0.0" />
<PackageReference Include="CoreSuite.DecimalBox" />
paket add CoreSuite.DecimalBox --version 1.0.0
#r "nuget: CoreSuite.DecimalBox, 1.0.0"
#:package CoreSuite.DecimalBox@1.0.0
#addin nuget:?package=CoreSuite.DecimalBox&version=1.0.0
#tool nuget:?package=CoreSuite.DecimalBox&version=1.0.0
DecimalBox
Culture-aware decimal input for Windows Forms.
DecimalBox is one of the controls or components included in the CoreSuite solution. The package depends on CoreSuite.NumericBoxBase. NuGet installs the required package or packages automatically.
Overview
DecimalBox extends NumericBoxBase and provides culture-aware decimal input for Windows Forms.
It is designed for .NET 8 Windows Forms applications and can be configured in code or through the Visual Studio designer where designer support applies.
Features
- Current numeric value.
- Culture used for parsing and formatting.
- Number of fractional digits.
- Enables digit grouping.
- Uses the standard Windows Forms event and component model.
- Includes English XML documentation for the public API.
- Requires no third-party packages.
Requirements
- Windows Forms
- .NET 8 for Windows (
net8.0-windows)
Installation
Install the package from NuGet:
dotnet add package CoreSuite.DecimalBox
Or use the Visual Studio NuGet Package Manager and search for:
CoreSuite.DecimalBox
Namespace
Imports CoreSuite.Controls
Quick start
Imports CoreSuite.Controls
Dim AmountBox As New DecimalBox With {
.DecimalCulture = Globalization.CultureInfo.GetCultureInfo("pt-BR"),
.DecimalPlaces = 2,
.DecimalValue = 1234.56D,
.IncludeThousandSeparator = True
}
AddHandler AmountBox.DecimalValueChanged, Sub() Console.WriteLine(AmountBox.DecimalValue)
Designer usage
After installing or referencing the package, add DecimalBox from the Toolbox or create it in code. Properties configured in the Windows Forms Designer are serialized into InitializeComponent and remain available at runtime.
API reference
DecimalBox
Represents culture-aware decimal input for Windows Forms.
Public Class DecimalBox
Inherits NumericBoxBase
Main members
| Member | Behavior |
|---|---|
DecimalValue |
current numeric value. |
DecimalCulture |
culture used for parsing and formatting. |
DecimalPlaces |
number of fractional digits. |
IncludeThousandSeparator |
enables digit grouping. |
RoundingMode |
midpoint rounding strategy. |
DecimalValueChanged |
raised when the value changes. |
Behavior and validation
- Property changes take effect immediately unless a method explicitly starts or applies an operation.
- Callers should validate user input and referenced objects before performing application-specific work.
- Events use the standard Windows Forms event model and should be handled on the UI thread.
Standard functionality
Because DecimalBox inherits from NumericBoxBase, the standard public members of that base type remain available unless the control intentionally hides or overrides them.
Resource and lifetime considerations
- Dispose components, controls, images, fonts and menus created dynamically when your application owns them.
- Keep referenced controls alive for as long as a component is attached to them.
- File-based operations should receive valid, accessible paths.
Package information
| Item | Value |
|---|---|
| Package | CoreSuite.DecimalBox |
| Namespace | CoreSuite.Controls |
| Assembly | CoreSuite.DecimalBox |
| Target framework | net8.0-windows |
| UI framework | Windows Forms |
| CoreSuite dependencies | CoreSuite.NumericBoxBase |
| External dependencies | None |
License
This package is distributed under the MIT License defined by the CoreSuite repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- CoreSuite.NumericBoxBase (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 97 | 8/2/2026 |
Initial release of the DecimalBox control.