La funzione potrebbe essere (ho anche cambiato nome ...)
e il suo uso puo' esserecodice:Public Function Centra(frm As Form) frm.Left = (Screen.Width - frm.Width) / 2 frm.Top = (Screen.Height - frm.Height) / 4 End Function
codice:Centra Me
La funzione potrebbe essere (ho anche cambiato nome ...)
e il suo uso puo' esserecodice:Public Function Centra(frm As Form) frm.Left = (Screen.Width - frm.Width) / 2 frm.Top = (Screen.Height - frm.Height) / 4 End Function
codice:Centra Me