Results 1 to 4 of 4

Thread: MDI child form placement

  1. #1

    Thread Starter
    Hyperactive Member nickwrs's Avatar
    Join Date
    Jan 2000
    Location
    Atlanta, Ga
    Posts
    398

    Exclamation

    Is there a way to make MDI children appear in a particular part of the screen????

    I have a program and I need to make a tool bar that shows up on the right side of the screen and another box that I would like to have some where in the top right??

    Is there any way to do this?

    thankyou

    Nick

  2. #2
    Guest
    Use the Move Command to Move the Form when you load it.

    Code:
    Private Sub MDIForm_Load()
        Load Form2
        Form2.Move 960, 960
    End Sub

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You should make pictureboxes on the mdiform, they automatically align to the borders, you can set it with align property
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb MoveWindow API

    you also can you the MoveWindow API function.
    Code:
    Option Explicit
    Private Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long
    Private Sub Command1_Click()
    MoveWindow Form2.hwnd, 200, 200, 500, 500, True
    End Sub

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