>Any idea how could I modify resize event just for this form to work? For the code below. How do I make the height of the grid a little bit shorter than the whole window. SO that my CLOSE button will show properly.
>
>WITH ThisForm.myGrid
> .Height = ThisForm.Height - .Top - 5
> .Width = ThisForm.Width - .Left * 2
>ENDWITH
>
>Thanks.
>Angela
I suppose your button name is myCommand and your grid name is myGrid.
Also I suppose your button be realtive to the bottom of the form with a distance of 30px. So:
With ThisForm.myCommand
.Top = ThisForm.Height - 30
EndWith
WITH ThisForm.myGrid
.Height = ThisForm.Height - .Top - 35
.Width = ThisForm.Width - .Left * 2
ENDWITH
HTH
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!