ModernTextBox.WinForms 1.0.2

dotnet add package ModernTextBox.WinForms --version 1.0.2
                    
NuGet\Install-Package ModernTextBox.WinForms -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ModernTextBox.WinForms" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ModernTextBox.WinForms" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ModernTextBox.WinForms" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ModernTextBox.WinForms --version 1.0.2
                    
#r "nuget: ModernTextBox.WinForms, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ModernTextBox.WinForms@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ModernTextBox.WinForms&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ModernTextBox.WinForms&version=1.0.2
                    
Install as a Cake Tool

ModernTextBox.WinForms

NuGet Version NuGet Downloads License: MIT .NET Target .NET Framework Target

Stop using rigid, legacy inputs. Upgrade to a hardware-accelerated, highly customizable text input control for Windows Forms.

ModernTextBox Theme And Style

Theme Demo Style Demo


🛑 The Problem with the Standard TextBox

The default WinForms TextBox cannot have rounded corners, lacks native placeholder support without messy Win32 interop hacks, and cannot display inline icons. Trying to build a modern Search Bar or Password Box with the native control is a frustrating, broken experience.

🟢 The Podargus Solution

ModernTextBox.WinForms is a premium, zero-dependency input control. It wraps standard text entry into a beautifully rendered GDI+ container, providing glowing focus rings, built-in interactive icons, native placeholders, and flawless Dark Mode support.


🚀 Key Features

  • 3 Native Modes: Easily switch between Standard, Password, and Search modes via a single property.
  • Interactive GDI+ Icons: Features a built-in Search Glass (🔍), a dynamic Clear Text Button (✕), and an interactive Reveal Password Eye (👁).
  • Native Placeholders: Built-in watermark/placeholder text that automatically handles Z-index and focus states flawlessly without Win32 hooks.
  • Glowing Focus Rings: Crisp, vector-drawn borders that glow natively with your accent color when the user focuses the input.
  • 🎨 2 Theme Modes & 5 Core Styles: Full support for the Podargus Design Matrix (Dark/Light × DashboardPremium, FluentGlass, MaterialFlat, SoftNeumorphic, Cyberpunk).

📦 Installation

Package Manager Console

Install-Package ModernTextBox.WinForms

.NET CLI

dotnet add package ModernTextBox.WinForms

⚡ Quick Start & Code Examples

1. Global Theme Configuration

Instantly switch the look of your inputs to match your application's aesthetic.

using Podargus.UI.Controls.WinForms.ModernTextBox.Enums;

txtUsername.Theme = ThemeMode.Dark;
txtUsername.Style = TextBoxStyle.FluentGlass;

2. Standard Input (With Placeholder)

Creates a sleek input with floating watermark text.

using Podargus.UI.Controls.WinForms.ModernTextBox;
using Podargus.UI.Controls.WinForms.ModernTextBox.Enums;

var txtEmail = new ModernTextBox
{
    Type = TextBoxType.Standard,
    PlaceholderText = "Enter your email address...",
    Theme = ThemeMode.Dark,
    Style = TextBoxStyle.DashboardPremium,
    Size = new Size(300, 42)
};
this.Controls.Add(txtEmail);

3. Secure Password Input

Automatically masks characters and provides a clickable eye icon on the right to reveal the password.

var txtPassword = new ModernTextBox
{
    Type = TextBoxType.Password,
    PlaceholderText = "Enter your secure password...",
    Theme = ThemeMode.Dark
};

Renders a magnifying glass on the left. When the user starts typing, a clear (✕) button smoothly appears on the right to instantly clear the text.

var txtSearch = new ModernTextBox
{
    Type = TextBoxType.Search,
    PlaceholderText = "Search database...",
    Theme = ThemeMode.Light,
    Style = TextBoxStyle.MaterialFlat
};

🎨 Theme & Style Matrix

Design Style Aesthetic Concept Key Visual Characteristics
DashboardPremium Modern Executive Suite Sleek rounded inputs with prominent blue/cyan focus glows (Default).
FluentGlass Windows 11 Fluent High-radius rounded inputs with electric cyan accents and smooth hover states.
MaterialFlat Elevated Material Flat Underlined inputs with animated bottom-borders and deep purple accents.
SoftNeumorphic Soft Embossed Surfaces Organic, high-radius inputs with soft inner-shadows and warm coral/orange accents.
Cyberpunk High-Voltage Industrial Stealth black 0px-radius boxes with high-contrast glowing neon emerald and cyan focus rectangles.

⚙️ Specifications

Technical Metric Underlying Architecture Profile
Package Identity ModernTextBox.WinForms
Component Types Custom TextBox, PasswordBox, and SearchBar
Language Target C# (Optimized for .NET Framework 4.7.2+ & .NET 6.0/8.0+)
Rendering Engine Anti-Aliased Surface Vector Paint Mapping (GDI+)
Target Platforms Microsoft Windows Desktop Environment (WinForms)
Dependencies None (System.Windows.Forms Base Assembly Only)

📄 License

Distributed under the MIT License. See the repository LICENSE file for details.


Maintained by Podargus

Building zero-dependency, ultra-performance developer workflows and hardware-accelerated UI components.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.

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.2 45 9/23/2026
1.0.1 50 9/22/2026
1.0.0 42 9/22/2026

v1.0.2 Initial Stable Release:
- Fix Namespace issue in example code of readme.