VB 6.0 - Moving multiple forms - Asked By Kathy Lori on 16-Mar-12 09:02 AM

The application I'm working on currently creates forms that are all centered in the screen, not moveable or sizable.  Forms are shown or hidden, depending on which buttons you've pushed, so it pretty much is like a big deck of cards.  Now, the powers that be want to be able to move the windows.  The problem is that when you move one form, you want all the other ones to follow.  Is there anyway to propagate a windows message to all the forms, telling them all to move?  I did this in the mainform mouse move event
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, y As Single)
    Dim lngReturnValue As Long

If Button = 1 Then
      Call ReleaseCapture
      lngReturnValue = SendMessage(Me.hWnd, WM_NCLBUTTONDOWN, _
      HTCAPTION, 0&)
      frmSplash.Move Me.left, Me.top
    End If

What this does is, when the move is all done, the frmSplash will move under the mainform.  What I want is, when I'm dragging the mainform, that the frmSplash follows like it is being dragged as well.  Any ideas on how to do this?  Thanks.
Stephen P replied to Kathy Lori on 16-Mar-12 11:29 AM
isn't there an option to anchor the subform to the main form?  
Kathy Lori replied to Stephen P on 16-Mar-12 12:48 PM
I don't see any anchor property on these forms.  I do seem them with vba, but not vb6.
Stephen P replied to Kathy Lori on 16-Mar-12 03:03 PM
are you able to put code in which sets the properties?
Kathy Lori replied to Stephen P on 16-Mar-12 05:00 PM
Nope, nothing in the property pages refer to anchor. 
Somesh Yadav replied to Kathy Lori on 19-Mar-12 01:48 AM
refer to the below link


hope it helps you.
Kathy Lori replied to Somesh Yadav on 19-Mar-12 09:09 AM
Nope.  I'm afraid that didn't help.  Thank you, though.