Products Technologies Demo Docs Blog Support Company

X16: Using the TX Text Control Windows Forms Sidebars

With TX Text Control X16, we also released new dockable sidebar controls for typical tasks.

X16: Using the TX Text Control Windows Forms Sidebars

TX Text Control X16 offers a Sidebar control that can be placed inside an application and used as an alternative to dialogs. It can be pinned and unpinned to display the control as a docked sidebar or as a dialog.

For Windows Forms:

TXTextControl.Windows.Forms.Sidebar class

For WPF:

TXTextControl.WPF.Sidebar class

Besides the option to create a custom interface, the sidebar provides different pre-defined functional layouts that can be connected to a TextControl. Furthermore, horizontally and vertically docked sidebars can be used with specific ribbon tabs, where the user can toggle a related button to show or hide that control with the corresponding application.

This tutorial shows how to create a simple Windows Forms application with a sidebar layout.

  1. In Visual Studio, create a new Windows Forms application. Find the TextControl in the TX Text Control 26.0 tab of the Visual Studio Toolbox. Drag and drop an instance of TextControl onto a form.

    Step 1

  2. Now, find the Smart Tag in the upper right corner of TextControl and click the following wizards:

    1. Add a Ribbon
    2. Add a StatusBar
    3. Add a Ruler
    4. Add a Vertical Ruler

    Finally, click Arrange Controls Automatically.

  3. Select the ribbon control by clicking the blue File tab. Find the Smart Tag in the upper right corner of the ribbon control and insert the required ribbon tabs.

    Step 2

  4. Find the Sidebar control in the Toolbox and drag and drop an instance onto the form. Find the Smart Tag in the upper right corner and set the Dock property to Right. Then visit the Text Control Smart Tag again and click Arrange Controls Automatically.

    Step 3

  5. In the next step, you can choose the content layout of the sidebar. 6 layouts are pre-defined:

    • Goto
    • FieldNavigator
    • TrackedChanges
    • Styles
    • Find
    • Replace

    Select your required content layout.

  6. In the sidebar smart tag, connect the sidebar to the inserted TextControl by selecting the TextControl instance textControl1 from the drop-down list at the property TextControl.

  7. You can also customize the style of the sidebar using the Properties window. In the following screenshot, the font size has been changed:

    Step 4

  8. Compile and start your application.

    Sidebar

Test this on your own and download a trial version of TX Text Control X16.

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Also See

This post references the following in the documentation:

TX Text Control .NET for Windows Forms

  • TXTextControl.Windows.Forms.Sidebar Class

TX Text Control .NET for WPF

  • TXTextControl.WPF.Sidebar Class

Windows Forms

Text Control combines the power of a reporting tool and an easy-to-use WYSIWYG word processor - fully programmable and embeddable in your Windows Forms application. TX Text Control .NET for Windows Forms is a royalty-free, fully programmable rich edit control that offers developers a broad range of word processing features in a reusable component for Visual Studio.

See Windows Forms products

Related Posts

ASP.NETWindows FormsWPF

TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 3 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…


ASP.NETWindows FormsWPF

TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 2 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…


ActiveXASP.NETWindows Forms

Service Pack Releases: What's New in TX Text Control 33.0 SP1 and 32.0 SP5

TX Text Control 33.0 Service Pack 1 and TX Text Control 32.0 Service Pack 5 have been released, providing important updates and bug fixes across platforms. These service packs improve the…


ASP.NETWindows FormsWPF

The Wait is Over: TX Text Control for Linux is Officially Here

We are very excited to announce the release of TX Text Control 33.0 which includes the long awaited Linux version of TX Text Control. This version allows you to integrate TX Text Control into your…


ASP.NETWindows FormsWPF

Full .NET 9 Support in Text Control .NET Components for ASP.NET Core,…

.NET 9 will be launched tomorrow, November 12, at the .NET Conf 2024 with updates to cloud capabilities, security, and performance. TX Text Control .NET components are fully compatible with .NET 9…