Results 1 to 4 of 4

Thread: Desperate Form Design Time Height

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    76
    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

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    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
    {;->

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    76
    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

  4. #4
    Lively Member
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    84
    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
  •  



Click Here to Expand Forum to Full Width