Jump to content

Limpar o ecrã ! ClearScreen em C#


Recommended Posts

Posted

Precisso de saber se alguem saber fazer clear screen aki no C#

i por cores e essas cenas????

tipo:

__________________
Pascal

uses crt;

clrscr();
__________________

C

#include <conio.h>

clrscr();
__________________

PEACE ;)

cumps

  • 2 weeks later...
Posted

Não havia para o .net SDK 1.1 max agora com o novo .net SDK 2.0 já existe uma cena para limpar o ecrã:

inda n consegui foi por a funcionar... =(

using System;

class clearscreen
{

static void Main()
{
	Console.WriteLine("HEllo World");
	Console.Clear();
	Console.WriteLine("Limpei o Ecra");
	Console.ReadLine();
}
}

dá erro , diz que o clear n existe na Console!

ai tenhu tudo instalado .net SDK 2.0 e neps! :cry:

PEACE ;)

Posted

Que IDE estás a usar?

Em Visual Studio 2005 funciona na boa...

E em VS 2003 tenho quase a certeza que também...

Dá uma olhadela aqui:

http://support.microsoft.com/default.aspx?scid=kb;en-us;319257

se bem que é um canhão para um mosquito...

Em VS 2005:

using System;

namespace ConsoleApplication1
{
   class Program
   {
       static void Main(string[] args)
       {
           Console.WriteLine("Teste 1");
           Console.Clear();
           Console.WriteLine("Teste 2");
           Console.ReadLine();
       }
   }
}
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.