473,386 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Console apps

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
Nov 20 '05 #1
4 940
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" <al********@alexmipego.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #2
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
Nov 20 '05 #3
* Alexandre Gomes <al********@alexmipego.com> 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/>
Nov 20 '05 #4

"Alexandre Gomes" <al********@alexmipego.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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]
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Aaron | last post by:
When you run a console app in VS6 it says "Press any key too continue..." how can i do that in VS.NET2003? thanks
2
by: Daniel Bass | last post by:
Forgive me if this is in the wrong place, I couldn't find a suitable .net services newsgroup to post in. I read in services that they are designed to have no UI, but I'd like to create one that...
3
by: sally | last post by:
I'm unfamiliar with console apps. Can i have a Load event in it like you can for web and windows project templates. thank you.
17
by: MumboJumbo | last post by:
Hi I have a really basic question hopefully some can help me with: Can you write a (i.e. one) C# project that works from the cmd line and gui? I seems if i write a GUI app it can't write to...
4
by: D.J. | last post by:
I've dug thru the help files in vb.net ver 1.0 and I've purchased several books. I also searched various web sites. But I cannot find detailed information on a start to finish console...
5
by: raulavi | last post by:
how do I debug console apps? If one app calls the other app (I need to debug the called app). what are each app settings? Thanks for you help.
6
by: MeowCow | last post by:
I will try and make my question with out being too long winded. I have been doing a lot of reading on how to do multithreading and I have implemented the code from the following example on...
0
by: serpius | last post by:
Hello Everyone, I am a beginner in VB.Net 2003 and am taking classes in beginning VB.net. To make a long story short, I am looking for real samples of coding in Console Apps. I am the type of...
4
by: Paul Hemans | last post by:
Hi newbie here. I am learning c++/cli I by writing console apps. When my apps finished they used to display a message at the bottom of the screen, something like "press any key to continue" so that...
5
by: =?Utf-8?B?UGFvbG8=?= | last post by:
I'm learning C# via console apps (to avoid getting bogged down in Windows stuff). I'm wondering how the OO paradigm would work. Say I'm developing 'classic' menu-driven apps where a menu gives a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.