You probably know this behavior from web browsers, such as FireFox or Microsoft Internet Explorer.
You have a table that is 100% the width of a document. As you resized the window in which the document is displayed, the document size changes. The change in width is directly proportional to the width of the window.
In this sample application, I am going to show you how to change the width of a table in sync with the width of a document.
Sounds complicated, but it is not. The screenshot that accompanies the tutorial will make things clearer.
Download the sample from GitHub and test it on your own.
Download and Fork This Sample on GitHub
We proudly host our sample code on github.com/TextControl.
Please fork and contribute.
Requirements for This Sample
- Visual Studio 2012 or better
- TX Text Control .NET for Windows Forms (trial sufficient)
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