# Creating Your First Windows Forms Application with C#

> This tutorial walks through creating a Windows Forms application with TX Text Control .NET for Windows Forms in C# on .NET 6. It covers installing the SDK via NuGet, adding TextControl from the toolbox, and attaching ButtonBar, StatusBar, and ruler controls using the Smart Tag wizard.

- **Author:** Bjoern Meyer
- **Published:** 2020-01-01
- **Modified:** 2026-03-05
- **Description:** This tutorial walks through creating a Windows Forms application with TX Text Control .NET for Windows Forms in C# on .NET 6. It covers installing the SDK via NuGet, adding TextControl from the toolbox, and attaching ButtonBar, StatusBar, and ruler controls using the Smart Tag wizard.
- **2 min read** (347 words)
- **Tags:**
  - Windows Forms
  - Tutorial
  - Getting Started
- **Web URL:** https://www.textcontrol.com/blog/2020/01/01/creating-your-first-windows-forms-application-with-csharp/
- **LLMs URL:** https://www.textcontrol.com/blog/2020/01/01/creating-your-first-windows-forms-application-with-csharp/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2020/01/01/creating-your-first-windows-forms-application-with-csharp/llms-full.txt

---

> **Disclaimer**
> 
> This article was first published in 2020 and is recently updated.

### Prerequisites

- [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/)
- [TX Text Control .NET for Windows Forms](https://www.textcontrol.com/product/tx-text-control-dotnet-winforms/)

### Create Your Application

1. Start Visual Studio .NET and create a new project. Select *C#* as a project type and **Windows Forms App** as a template. Specify a project name and confirm with Next.
    
    ![Create Your Application](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/01/m/assets/visualstudio1.webp "Create Your Application")
2. Select your preferred Framework version such as *.NET 6 (Long-term support)* and confirm with Create.
    
    ![Create Your Application](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/01/m/assets/visualstudio2.webp "Create Your Application")
3. Open your project in Solution Explorer and go to *Manage NuGet Packages* from the main menu. Choose *Text Control Offline Packages* as the package source, search for **TXTextControl.TextControl.WinForms.SDK** under the Browse tab, and click Install.
    
    ![Create Your Application](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/01/m/assets/visualstudio3.webp "Create Your Application")
4. Find the **TX Text Control 32.0** toolbox tab that has been created automatically. All usable TX Text Control controls or components are listed in this tab.
    
    ![Create Your Application](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/01/m/assets/visualstudio4.webp "Create Your Application")
    
    Choose the *TextControl* icon and draw it on the Windows Form.
    
    ![Create Your Application](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/01/m/assets/visualstudio5.webp "Create Your Application")
5. Now, click on the Smart Tag in the upper right corner of *TextControl*. In the Wizards group, click on *Add a Button Bar*, *Add a Status Bar*, *Add a Ruler Bar*, and *Add a Vertical Ruler*. Finally, click on *Arrange Controls Automatically*.
    
    ![Create Your Application](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/01/m/assets/visualstudio6.webp "Create Your Application")
    
    The controls are now connected and docked to fill the container:
    
    ![Create Your Application](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/01/m/assets/visualstudio7.webp "Create Your Application")
6. Build and start your Windows Forms C# application to see the first results.

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [Windows Forms Tutorial: Create Your First Windows Forms C# Application](https://www.textcontrol.com/blog/2024/08/26/windows-forms-tutorial-create-your-first-windows-forms-csharp-application/llms.txt)
- [Getting Started with Windows Forms (.NET Framework)](https://www.textcontrol.com/blog/2022/09/01/getting-started-with-windows-forms-net-framework/llms.txt)
- [Getting Started with Windows Forms (.NET 5 and better)](https://www.textcontrol.com/blog/2022/09/01/getting-started-with-windows-forms-net-5-and-better/llms.txt)
- [New Getting Started Article Hub Launched](https://www.textcontrol.com/blog/2022/07/11/new-getting-started-article-hub-launched/llms.txt)
- [Creating A Windows Forms Ribbon Application](https://www.textcontrol.com/blog/2020/01/01/creating-a-windows-forms-ribbon-application/llms.txt)
- [Document Permissions and Password Encryption](https://www.textcontrol.com/blog/2019/07/05/document-permissions-and-password-encryption/llms.txt)
- [Windows Forms and WPF: End a List on Return when Line is Empty](https://www.textcontrol.com/blog/2016/08/26/windows-forms-and-wpf-end-a-list-on-return-when-line-is-empty/llms.txt)
- [Using IFormattedText Objects to Access Elements Across All TextParts in a Document](https://www.textcontrol.com/blog/2016/08/25/using-iformattedtext-objects-to-access-elements-across-all-textparts-in-a-document/llms.txt)
- [Windows Forms: Printing Multiple Pages Per Sheet](https://www.textcontrol.com/blog/2015/07/24/windows-forms-printing-multiple-pages-per-sheet/llms.txt)
- [Inserting Watermark Images to All Pages Dynamically](https://www.textcontrol.com/blog/2015/07/17/inserting-watermark-images-to-all-pages-dynamically/llms.txt)
- [Reporting: Sorting Merge Block Rows by Column Name](https://www.textcontrol.com/blog/2015/07/15/reporting-sorting-merge-block-rows-by-column-name/llms.txt)
- [MailMerge: Conditional INCLUDETEXT Fields](https://www.textcontrol.com/blog/2015/01/08/mailmerge-conditional-includetext-fields/llms.txt)
