At design time i am setting form.Height = 8190
But at run time i get different value in MDI
i just want to get the form.hieght at design time.
I mean i want to read the value 8190 atleast if not setting it to 8190..
How do i get it.
Satish
Printable View
At design time i am setting form.Height = 8190
But at run time i get different value in MDI
i just want to get the form.hieght at design time.
I mean i want to read the value 8190 atleast if not setting it to 8190..
How do i get it.
Satish
In the Declarations section of the form
dim myheight=8190
dim mywidth=12000
In the Form_Load
Sub Form_Load
me.height = myheight
'or
height = myheight
me.width = mywidth
'or
width = mywidth
End Sub
Is that what you want?
DocZaf
{;->
No i cant hard code it i need to read the value iam doing some object repositioning (Flexing) based on the difference between Design time form size and run time form size
Have you tried using MDIForm.ScaleHeigt?
MSDN:
- ScaleHeigt -
Return or set the number of units for the horizontal (ScaleWidth) and vertical (ScaleHeight) measurement of the interior of an object when usinggraphics methods or when positioning controls. For MDIForm objects, not available atdesign time and read-only atrun time.
Hope this Helps