Well, I did one trick and it works for me. We usually write an application name in the center and expect it to show to the user. And many people here said that MdiParent is only for Forms and not for other tools like we cannot hide label/panel behind MdiChild form.
So what I did is I wrote all the things like application name, contact, email etc etc etc in a new Form
say frmMdiBody
, Set its formBorderStyle = None
and set the desired length of the form, StartPosition = CenterScreen
and in Timer.Tick
, I wrote the following : (Didn't work for me in Load event)
Dim NewMDIChild As frmMdiBody = MdiChildren.OfType(Of frmMdiBody)().SingleOrDefault
If NewMDIChild Is Nothing Then
NewMDIChild = New frmMdiBody
NewMDIChild.MdiParent = Me
NewMDIChild.Show()
End If
This above code also checks if there is one form open so that it won't open many frmMdiBody
again and again as we are writing in Timer.Tick event
Someone can rectify me if I am wrong. I'd do the changes too if seems appealing.