Results 1 to 4 of 4

Thread: How do you get the height of a form "excluding" the control bar?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2004
    Posts
    72

    Question How do you get the height of a form "excluding" the control bar?

    How do you get the height of a form "excluding" the control bar?
    Help please.
    Drazzakia... Knowlage is fresh with new data, mine is mastered with the old data. (i'm not talking about vb knowlage )

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: How do you get the height of a form "excluding" the control bar?

    The ScaleHeight and ScaleWidth properties indicate the dimensions (in ScaleMode units) for the "client" area of the form.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2004
    Posts
    72

    Question Re: How do you get the height of a form "excluding" the control bar?

    Quote Originally Posted by brucevde
    The ScaleHeight and ScaleWidth properties indicate the dimensions (in ScaleMode units) for the "client" area of the form.
    Thank you, but i made a mistake in my original question*
    How do you set* the height of a form excluding the control bar

    cheers
    Drazzakia... Knowlage is fresh with new data, mine is mastered with the old data. (i'm not talking about vb knowlage )

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2004
    Posts
    72

    Re: How do you get the height of a form "excluding" the control bar?

    Quote Originally Posted by Drazzakia
    Thank you, but i made a mistake in my original question*
    How do you set* the height of a form excluding the control bar

    cheers
    worked it out myself:
    temp = form.height - form.scaleheight
    form.height = somevalue + temp
    Drazzakia... Knowlage is fresh with new data, mine is mastered with the old data. (i'm not talking about vb knowlage )

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