Help please, how to use 'cls' before you display something ?
移民生活北美论坛 -> IT人生

#1: 作者: 许迈克时间: 2008-10-23 16:59

c#,

I want to clear the console first before I display something.

How to do it? Use 'cls' , how?

#2: 作者: 3M时间: 2008-10-23 17:20

你希望一个空白的屏幕?在console下面,还是窗口里?

#3: 作者: SARS时间: 2008-10-23 17:49

C#可以调用Windows API吧?ShellExecute("cls",...)

俺不是C#专家,just an idea.

#4: 作者: 7thGuest时间: 2008-10-23 18:01

Clear

#5: 作者: 7thGuest时间: 2008-10-23 18:03

陆压 写道:
Clear

瞎猜得big_happy.gif

#6: 作者: TwoEspresso时间: 2008-10-23 18:08

LZ不要偷懒,google下么。。

#7: 作者: aweican时间: 2008-10-23 18:48

Console.Clear()

#8: 作者: 许迈克时间: 2008-10-23 20:02

3M 写道:
你希望一个空白的屏幕?在console下面,还是窗口里?


sorry, it should be in console.

#9: 作者: 许迈克时间: 2008-10-23 20:08

aweican 写道:
Console.Clear()


Is that easy? yes, it works.

Thanks.

#10: 作者: 许迈克时间: 2008-10-23 20:09

陆压 写道:
陆压 写道:
Clear

瞎猜得big_happy.gif


big_happy.gif big_happy.gif 猜 dui le




移民生活北美论坛 -> IT人生


output generated using printer-friendly topic mod, 所有的时间均为 美国太平洋时间

1页,共1

Powered by phpBB 2.0.8
Content received from: 加西网 (温哥华门户), https://www.westca.com