>Thanks Nadya,
>Yur message got me started, but I found that this works for every resize() I could think of.
>
>with Column
> lnWidthTotal ;
> = 3 ;
> + IIF(.DELETEMARK,8,0) ;
> + IIF(.RECORDMARK,10,0) ;
> + IIF(.SCROLLBARS>1,sysmetric(5),0) ;
> + .COLUMNCOUNT
> for each loColumn in .Columns
> lnWidthTotal = lnWidthTotal + loColumn.Width
> endfor
>endwith
>
>Do you have any idea why my formula works better for me? Maybe different screen resolutions?
>
After re-reading my formula I see, that mine is incorrect. Why I use GridLineWidth*2? Should it be (.ColumnCount-1)*GridLineWidth instead? May be that's why I added some numbers like + 10 here...
If it's not broken, fix it until it is.
My Blog