This program shows how to center a child form on an MDIForm with one line of code, It works on any
This program shows how to center a child form on an MDIForm with one line of code, It works on any resolution, no API
Rate This program shows how to center a child form on an MDIForm with one line of code, It works on any
(2(2 Vote))
'Dont forget to use FrmChild.Show is it is not visible
'Mail me: [email protected]
'This program shows how to center a child form on an MDIForm with one line of _ code.
'Replace MDIForm1 and frmChild with your forms' names
'It works on any resolution
If frmchild.windowstate = vbNormal then _
frmChild.Move MDIform1.ScaleWidth / 2 - frmChild.ScaleWidth / 2, _
MDIForm1.ScaleHeight / 2 - frmChild.ScaleHeight / 2
This program shows how to center a child form on an MDIForm with one line of code, It works on any Comments
No comments yet — be the first to post one!
Post a Comment