Hello all:
Any ideas how to center a form that opens inside a MDI form I tried this
me.left = (screen.width / 2) - (me.width / 2)
me.top = (screen.height / 2) - (me.height / 2)
but this seems to center it according to the screen.
Thanks
murubhai
Printable View
Hello all:
Any ideas how to center a form that opens inside a MDI form I tried this
me.left = (screen.width / 2) - (me.width / 2)
me.top = (screen.height / 2) - (me.height / 2)
but this seems to center it according to the screen.
Thanks
murubhai
The MDI form must be visible for this to work properlyBest regardsVB Code:
Me.Move (MDIForm1.ScaleWidth - Me.Width) \ 2, (MDIForm1.ScaleHeight - Me.Height) \ 2
Thanks, it works