To get the Form width and height:
From a sub within the form itself:
Me.Width, Me.Height
From outside the form:
(where frm is an instance of the form)
frm.Width, frm.Height
From outside the form:
(where ctl is an instance of the control)
ctl.parent.Width, ctl.parent.Height 'get the parent of the control
ctl.TopLevelControl.Width, ctl.TopLevelColntrol.Height
Haven't tried the following but it might work:
ctl.Container.Width, ctl.Container.Height
--
Dennis in Houston
"David Gacek" wrote:
I'm just wondering how can i get the properties of the container that the
control resides on in vb6 is was quite simple.
I want to get the forms width and heigth
thanks