Ok, I've looked hi and low to figure this one out but couldn't find the solution. So I'm posting to the experts. I have a form that has an image control on it. When the form is resized I want to set the height and width of the control to that of the form, plus or minus a few twips to allow for a nice boarder. I have code in the Form_Resize event and the event fires when the form is resized, but for some reason it "ALWAYS RETURNS THE SAME VALUE!!!" for Height and Width.
Is there a property that I have to set to make these values change correctly with the size of the screen? Here's the code I'm using:
Private Sub Form_Resize()
Debug.Print Me.Width, Me.Detail.Height, Me.Name
imgViewer.Width = Me.Width - 120
imgViewer.Height = Me.Detail.Height - 420
End Sub
Thanks for any help you might be able to offer on this one! Snaggs
tribesaddict@swbell.net
To define recursion, we must first define recursion.
Is there a property that I have to set to make these values change correctly with the size of the screen? Here's the code I'm using:
Private Sub Form_Resize()
Debug.Print Me.Width, Me.Detail.Height, Me.Name
imgViewer.Width = Me.Width - 120
imgViewer.Height = Me.Detail.Height - 420
End Sub
Thanks for any help you might be able to offer on this one! Snaggs
tribesaddict@swbell.net
To define recursion, we must first define recursion.