I have placed a button controls in center the mdi. But when I an opening a child forms, the forms appears below the button
Please help ?
I Used this coding but it didn't work..............
Private Sub MDIFORM_MdiChildActivate(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.MdiChildActivate
Dim cnt As Integer = 0
For Each frm As Form In My.Application.OpenForms
cnt += 1
Next
If cnt >= 1 Then
Me.Button1.Visible = False
Me.Button2.Visible = False
Me.Button3.Visible = False
ElseIf cnt = 0 Then
Me.Button1.Visible = True
Me.Button2.Visible = True
Me.Button3.Visible = True
Else
End If
End Sub