-
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
-
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
-
You should make pictureboxes on the mdiform, they automatically align to the borders, you can set it with align property
-
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