How to center a dialog box

Hello,

Looking at some of the msdn code I found the snippet below that I am trying to use for a customize dialog box. MSDN states this is available on compact 2.0 but I get the message stating it's not declared. Any help would be appreciated.

John

Dim form1 as new form()

form1.StartPosition = FormStartPosition.CenterScreen



Answer this question

How to center a dialog box