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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Colwidth in MSFlexGrid

Status
Not open for further replies.

mbuss

Programmer
Oct 22, 1999
6
0
0
DE
I need the optimal column width for a column in the MSFlexGrid (VB 5).<br>
I tried coding with the textMatrix-string length multiplied with a constant.<br>
This is very unsatisfying, is there a better way of coding it?<br>

 
mbuss,<br>
<br>
What I've done in the past (not sure if it is best or not) is use the textwidth function to establish what the largest size of column I would need to hold a string and then set the column appropriate column to that size using colwidth.<br>
<br>
Hope that helps<br>
<br>
DSJ
 
DSJ<br>
<br>
Thanks.<br>
<br>
Your advice was the solution for my problem.<br>
<br>
It works really good.<br>
<br>
<br>
mbuss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top