how to make a correct working code from TN given material.

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.

March 3rd, 2015 6:53am

I would recommend posting back on msdn forums (Microsoft developer network)

edit: the 'show windows side by side' functionality is available in 8.

Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2015 12:50pm

Hi,

Add:

"Show windows side by side" is already included in Windows 8.1 system.

And this is the right forum to discuss this issue

MSDN--_Windows Forum

https://social.msdn.microsoft.com/Forums/en-US/home?category=windowsforms

Regards

March 6th, 2015 4:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics