Hello everyone,
you'll find here two short examples on how you can resize columns in a table to fit completely the table width.
The code determine automagically (thanks to Erel, agraham) the if scrollbars are visible and "fix" the widht of columns.
To simply the example,
I'll set the second column dimension to a fixed one.
With simply editing, you can add more columns and do more.
In the first example you'll find a form with a table that has a button under it.
When you press the button, the first column will resize to fit table.
In the second example there is a Timer control that resize automatically the first column to fit table just after the Form is shown on the screen.
Bye,
ghale.
you'll find here two short examples on how you can resize columns in a table to fit completely the table width.
The code determine automagically (thanks to Erel, agraham) the if scrollbars are visible and "fix" the widht of columns.
To simply the example,
I'll set the second column dimension to a fixed one.
With simply editing, you can add more columns and do more.
In the first example you'll find a form with a table that has a button under it.
When you press the button, the first column will resize to fit table.
In the second example there is a Timer control that resize automatically the first column to fit table just after the Form is shown on the screen.
Bye,
ghale.