In form load add the following two lines
[tt]
Me.Show
MsgBox "Load Event. My Width Is " & Me.Width
[/tt]
write that number down and in the resize event...
[tt]
MsgBox "Resize Event. My Width Is = " & Me.Width
[/tt]
Is that number different after you resize the form?
Also I see no error trapping in your resize event. You may want to add an error handler there.
1- Make sure 'frmGridUI' is the name of the form you are trying to resize.
2- If you are trying to resize vertically ONLY, the width will NOT change but the height property will. Where as in your code you are only assigning the width of the form.
3- In the resize event, try putting the code:
run the project and try to resize. you will see in the immediate window that the height and width properties do change. {W r i t e C o d e A n d K i c k A s s}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.