Results 1 to 3 of 3

Thread: [RESOLVED] Check Form Border Location

  1. #1

    Thread Starter
    Member Shadow45o's Avatar
    Join Date
    Sep 2008
    Posts
    51

    Resolved [RESOLVED] Check Form Border Location

    Ok, what I mean by this is that, I need a check that will see the location of the edge of the form. An example would be (for what I am trying to do) is, when a form is moved, the main form will get bigger depending which border and which way the second form is going.

    So basically I need some way to make Form1 get bigger if Form2 is near the left border or near the bottom border.

    *I have a mini system for making it grow(LocationChanged) on the form I want it to work for.
    *I also know about ".left" and ".top",

    ***but I need a check for the border of the form***

    Thanks for any help...can't think of how I can be more specific (post here if you need additional info...)

  2. #2
    PowerPoster SJWhiteley's Avatar
    Join Date
    Feb 2009
    Location
    South of the Mason-Dixon Line
    Posts
    2,256

    Re: Check Form Border Location

    Since you know about the location and size of the form, I'm not clear on what you are asking...perhaps the .ClientSize property may help?
    "Ok, my response to that is pending a Google search" - Bucky Katt.
    "There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk.
    "Before you can 'think outside the box' you need to understand where the box is."

  3. #3

    Thread Starter
    Member Shadow45o's Avatar
    Join Date
    Sep 2008
    Posts
    51

    Resolved Re: Check Form Border Location

    Quote Originally Posted by SJWhiteley View Post
    Since you know about the location and size of the form, I'm not clear on what you are asking...perhaps the .ClientSize property may help?

    Actually...I over looked something, the ".left" wasn't working because it was looking for an exact position, so I just need to play around ( i added a greater than or equal to it) it seems to work, just need to play around..

Tags for this Thread

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