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

How to center a dialog box
chaza
This is indeed confusing and I have sent a message along to our documentation person to take a look at what is going on.
For members that are supported on .NETCF, I would expect to see something like the following in the "Version Information" section on the relevant MSDN page:
Version Information
.NET Framework
Supported in: 2.0, 1.1, 1.0
.NET Compact Framework
Supported in: 2.0
Andy Hough
Place this code inside form_load form will display in the center
Rectangle screen = Screen.PrimaryScreen.Bounds;
this.Location = new Point((screen.Width - this.Width) / 2,
(screen.Height - this.Height) / 2);
Thanks
TechNeilogy
I don't see where on MSDN it claims this property is supported on .NETCF; here are the links I am looking at: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformsformstartpositionclasstopic.asp
and
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformsformmemberstopic.asp
Sarath.