Results 1 to 2 of 2

Thread: MDI Child Form's are pissing me off!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Posts
    21

    Post

    Hi. I'm trying to make it so that if a child form's startup position makes any of it hidden outside of the MDIMain form, that it will revert back to the top of the MDIform and the cascading startuppositions will start over.

    I know this isn't how I would code it, but maybe it will help you guys understand what I'm trying to do.

    Dim Mr as Integer
    Dim r as Integer
    r=childform.right(I know this can't be done)
    Mr=MDIForm.right

    If r > Mr then,
    childform.startupposition = 0,0
    End If

    If anyone can help me with this I would greatly appreciate it.


  2. #2
    Member
    Join Date
    Mar 1999
    Location
    Louisville, KY
    Posts
    48

    Post

    In the child form's load procedure...

    If (Me.Left + Me.Width) > MDIForm.Width then
    'Reset Start Position Here
    End if

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