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.

GitHub

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)