with this.pgfMain debugout debstr( .PageHeight, .PageWidth ) .Height = this.Height - 30 .Width = this.Width - 30 debugout debstr( .PageHeight, .PageWidth ) .Height = this.Height - 30 .Width = this.Width - 30 debugout debstr( .PageHeight, .PageWidth ) endwithI noticed that with just one set of code in there when the pgf needed to adjust the number of tab rows it was off, but then sizing the form a little bit got it to the correct size. So hitting it twice during the initial resize fixes the problem.