I’ve tried this example directly from MSDN:
Dim Screens() As System.Windows.Forms.Screens
and I can’t find a way to get a reference to the Screen. I’ve checked my references and they seem fine but I may have missed something. Anyone experience this or know of a bug?
EDIT 0: It helps if you’re using the correct project type. In WPF, it’s SystemParameters. Thanks all.
I’m fairly sure you actually want
(no
sat the end), as there isn’t aScreenstype. The above line declaresScreensas an array ofScreenobjects – now you can doand do whatever it is you want to do with each
Screen.edit not sure what reference problem you are still getting. From scratch, I start a new Windows Forms project, replace the code-behind in
Form1with this:and it runs and does what I expect. This is VS2005 (not Express) but I can’t imagine that would make a difference.