|
-
Nov 2nd, 2000, 03:03 PM
#1
Thread Starter
Addicted Member
Does anyone know of any code which would allow me to horizontally tile 4 MDI Child forms in the parent form?
smh
Normal is boring...
 smh 
-
Nov 2nd, 2000, 03:21 PM
#2
Use the Arrange method
Code:
MDIForm1.Arrange vbTileHorizontal
-
Nov 2nd, 2000, 03:41 PM
#3
Fanatic Member
Code:
Dim chldWin(3) As New chldForm1
Dim chldHeight As Integer
Private Sub mnuTileH_Click()
chldHeight = Int(Me.ScaleHeight / 4)
For x = 0 To 3
chldWin(x).Top = chldHeight * x
chldWin(x).Width = Me.ScaleWidth
chldWin(x).Left = 0
chldWin(x).Height = chldHeight
chldWin(x).Show
Next x
End Sub
There ya go, hope this helps. If it's actually ScaleWidth to do a horizontal, just replace the above code with this:
Code:
Dim chldWin(3) As New chldForm1
Dim chldWidth As Integer
Private Sub mnuTileH_Click()
chldWidth = Int(Me.ScaleWidth / 4)
For X = 0 To 3
chldWin(x).Top = 0
chldWin(x).Width = chldWidth
chldWin(x).Left = chldWidth * X
chldWin(x).Height = Me.ScaleHeight
chldWin(x).Show
Next X
End Sub
Hope this helps.
-
Nov 2nd, 2000, 03:42 PM
#4
Fanatic Member
Woo, well, that's pretty spiffy, Megatron. I didn't know about that command (hurriedly takes some notes)
-
Nov 2nd, 2000, 03:55 PM
#5
Thread Starter
Addicted Member
thanks
thanks...worked great!
smh
Normal is boring...
 smh 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|