Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to resize cells using MSHFlexGrid

Status
Not open for further replies.

BetoVelasco

Programmer
Sep 25, 2002
10
US
Hi when I rum my program it shows all it needs to show but the size of the cell is not big enough. I am using a MSHFlexGrid and ican make the cells longer. I am trying to use ColWidth but I do not have a clue. Help me please.
Thanx
 
This will resize all the columns to equal widths across the grid:

For i = 0 To fg.Cols - 1
fg.ColWidth(i) = fg.Width / fg.Cols
Next



Mark
 
You can set the .AllowUserResizing property to flexResizeColumns. This will allow the user to size the columns as they need.

There was also a thread a few weeks ago that delt with sizing a column to the length of the data within it. A few minutes searching may give you that information as well. Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top