|
-
Apr 4th, 2000, 12:52 AM
#1
Thread Starter
Lively Member
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
-
Apr 4th, 2000, 03:59 AM
#2
Fanatic Member
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
{;->
-
Apr 4th, 2000, 04:01 AM
#3
Thread Starter
Lively Member
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
-
Apr 4th, 2000, 01:39 PM
#4
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|