hello all
I read about class Screen from this site and tried to make a code to show all active windows on one desktop like windows 7 function "show windows side by side"
have a look at my code
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace System.Windows.Forms { System.Object System.Windows.Forms.Screen { class Screen {public static Screen[] AllScreens { get; }} }
it have two errors one is about setting get and set method and other I could not understand.
Error 1
A namespace cannot directly contain members such as fields or methods
C:\Users\a\documents\visual studio 2010\Projects\ClassLibrary3\ClassLibrary3\Class1.cs
9 5
ClassLibrary3
friends please tell me how will be correct functioning code to get all active windows on single desktop.