PC Review


Reply
Thread Tools Rate Thread

Console apps

 
 
Alexandre Gomes
Guest
Posts: n/a
 
      13th May 2004
I've been searching for a clue for this but can't find one.

Is possible to create an aplication with something like:

"Decompressing... x%"

Where the x will be changing with the evolution of the decompression in
this case.
In this case I used decompressing but it could be anything like in Linux
or Dos where u can have an application in textmode.

Thanks
 
Reply With Quote
 
 
 
 
Rob Teixeira [MVP]
Guest
Posts: n/a
 
      13th May 2004
Sure. If you're using VS.NET, just click New Project menu, and in the
project dialog, pick Console Application.
The IDE will create the skeleton code for the project.
You can use Console.Write, or Console.WriteLine to output text to the
screen.

-Rob Teixeira [MVP]

"Alexandre Gomes" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I've been searching for a clue for this but can't find one.
>
> Is possible to create an aplication with something like:
>
> "Decompressing... x%"
>
> Where the x will be changing with the evolution of the decompression in
> this case.
> In this case I used decompressing but it could be anything like in Linux
> or Dos where u can have an application in textmode.
>
> Thanks



 
Reply With Quote
 
=?Utf-8?B?R2xlbm4gV2lsc29u?=
Guest
Posts: n/a
 
      13th May 2004
if you use console.writline, it will print one line after another
but if you use console.write and then use a linereturn insted of
the carrage return you should be able to over write the text
and perform the function you nee

Glenn
 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      13th May 2004
* Alexandre Gomes <(E-Mail Removed)> scripsit:
> Is possible to create an aplication with something like:
>
> "Decompressing... x%"
>
> Where the x will be changing with the evolution of the decompression
> in this case.
>
> In this case I used decompressing but it could be anything like in
> Linux or Dos where u can have an application in textmode.


That's currently not supported by the 'Console' class directly, but it
will be supported in .NET 2.0 (2005).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Tom Shelton
Guest
Posts: n/a
 
      13th May 2004

"Alexandre Gomes" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I've been searching for a clue for this but can't find one.
>
> Is possible to create an aplication with something like:
>
> "Decompressing... x%"
>
> Where the x will be changing with the evolution of the decompression in
> this case.
> In this case I used decompressing but it could be anything like in Linux
> or Dos where u can have an application in textmode.
>
> Thanks


For now, you'll be wanting to either find a replacement Console class...
And, I used to have a link to a prety good one - but I can't find it
anymore! Or, you'll want to be looking into P/Invoke. Specifically, you'll
probably want:

GetStdHandle
GetConsoleMode
SetConsoleMode
*SetConsoleCursorPosition* 'this is the biggie

And a couple of others if you want colors...

--
Tom Shelton [MVP]


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GUI and Console Apps MumboJumbo Microsoft C# .NET 12 24th May 2005 04:19 PM
two console apps. =?Utf-8?B?cmF1bGF2aQ==?= Microsoft VB .NET 5 4th Apr 2005 09:33 PM
Console apps Alexandre Gomes Microsoft C# .NET 2 13th May 2004 08:15 AM
config files question for console apps / windows apps jai hanuman Microsoft Dot NET Framework Forms 2 15th Mar 2004 08:44 AM
Console apps Keith Rathband Windows XP Embedded 0 26th Aug 2003 01:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:54 AM.