I wanted to write a general routine that centers a dialog box. I had the following routine, but when I ran the code through a code analyzer, it reported that the prototype was incorrect. Is it and if so, please explain what's wrong.
Public Sub CenterDlgBox(ByVal v_frm As Form)
On Error Resume Next
v_frm.Top = (Screen.Height - v_frm.Height) / 2
v_frm.Left = (Screen.Width - v_frm.Width) / 2