Have an application that has an application launcher and a wmi section to it and i want to have both forms displaying at the same time but be connected to each other. I found the below code and when i move form2 it locks form 1 to it but when i try and reverse it for form one it dosent work. Please help with this im lost.
Private Sub Form1_Move(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Move, Me.Layout
If Me.Focused Then
form2.Left = Me.Right
form2.Top = Me.Top
End If
End Sub
Private Sub Form2_Move(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Move, Me.Layout
If Me.Focused Then
Form1.Left = Me.Left -Form1.Width
Form1.Top = Me.Top
End If
End Sub