Hi Folks,
I want to resize an MSHFlexGrid Column to the width of a given string. I'd have expected there to be a feature of the control to do this, but if there is I can't see it. I've tried various approaches, such as converting the length of the string to points (by getting the fontwidth value for the control and multiplying by the number of chars), then *20 to give a twips value (which is what the ColWidth property expects) but the problem is that the text width varies from character to character (I think that's the problem anyway), so the results are erratic. Can anybody think of an elegant way to do it? I do have a way to do it, but it's so crazy, tortuous and inelegant I'm reluctant to implement it if there's a simple way :) Any pointers in the right direction greatfully received. Cheers Colin -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm '// ======================================================= Rules : http://ReliableAnswers.com/List/Rules.asp Home : http://groups.yahoo.com/group/vbHelp/ ======================================================= Post : [email protected] Join : [EMAIL PROTECTED] Leave : [EMAIL PROTECTED] '// ======================================================= Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/vbhelp/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
