|
You last visited: Today at 23:10
Advertisement
Console applications
Discussion on Console applications within the CO2 Programming forum part of the Conquer Online 2 category.
07/11/2013, 23:49
|
#1
|
elite*gold: 0
Join Date: Jul 2011
Posts: 350
Received Thanks: 421
|
Console applications
Hey guys, I was checking out some console applications, it had this weird colors like in one line the text can be multi-colored I don't know how, I couldn't do it, and also a background color that fills all the console application, but in C# when you make a background for console applications it fills only the text's background, here are some examples of what I mean, these examples are made on photoshop, on the 2nd example I also want the "[STATUS]" part to have the console's background
Example 1
Example 2
|
|
|
07/12/2013, 00:03
|
#2
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Google is your friend.
If you want something mroe complex you're likely going to be imitating a console functionality inside a WinForm.
|
|
|
07/12/2013, 00:10
|
#3
|
elite*gold: 0
Join Date: Jul 2011
Posts: 350
Received Thanks: 421
|
Quote:
Originally Posted by pro4never
Google is your friend.
If you want something mroe complex you're likely going to be imitating a console functionality inside a WinForm.
|
That link didn't actually help, it just said how to change the foregroundcolor to the whole line, I didn't know how to make a multi-colored line like in Example 1
And I didn't know how I can make a background that fills the whole application .__.
|
|
|
07/12/2013, 00:12
|
#4
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
Use Console.Write instead of WriteLine.
|
|
|
07/12/2013, 00:16
|
#5
|
elite*gold: 0
Join Date: Jul 2011
Posts: 350
Received Thanks: 421
|
Quote:
Originally Posted by Super Aids
Use Console.Write instead of WriteLine.
|
Give me an example, for using Console.Write in multi-coloring a line .-.
|
|
|
07/12/2013, 00:35
|
#6
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Quote:
Originally Posted by ►™SuperE™◄
That link didn't actually help, it just said how to change the foregroundcolor to the whole line, I didn't know how to make a multi-colored line like in Example 1
And I didn't know how I can make a background that fills the whole application .__.
|
It answered every single one of your questions and was the very first result in google to "C# console color".
If you don't know the difference between Console.Write and Console.WriteLine then you should probably google it yourself rather than having us google it, post the link and then you telling us the link doesn't answer your question lol.
|
|
|
07/12/2013, 01:16
|
#7
|
elite*gold: 0
Join Date: Jul 2011
Posts: 350
Received Thanks: 421
|
Quote:
Originally Posted by pro4never
It answered every single one of your questions and was the very first result in google to "C# console color".
If you don't know the difference between Console.Write and Console.WriteLine then you should probably google it yourself rather than having us google it, post the link and then you telling us the link doesn't answer your question lol.
|
I already figured out the answer myself, thanks anyway .-.
|
|
|
07/12/2013, 23:04
|
#8
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
Code:
Console.ForegroundColor = ConsoleColor.Green;
Console.Write("Hello ");
Console.ForegroundColor = ConsoleColor.Red;
Console.Write("World!");
Was it really necessary?
|
|
|
07/13/2013, 02:32
|
#9
|
elite*gold: 0
Join Date: Jul 2011
Posts: 350
Received Thanks: 421
|
Quote:
Originally Posted by Super Aids
Code:
Console.ForegroundColor = ConsoleColor.Green;
Console.Write("Hello ");
Console.ForegroundColor = ConsoleColor.Red;
Console.Write("World!");
Was it really necessary?
|
Quote:
|
Originally Posted by [B
[/B]►™SuperE™◄;23766316]I already figured out the answer myself, thanks anyway .-.
|
.
|
|
|
07/16/2013, 12:36
|
#10
|
elite*gold: 83
Join Date: May 2011
Posts: 11,029
Received Thanks: 6,036
|
#closed
|
|
|
 |
Similar Threads
|
GM Console
07/25/2015 - Perfect World - 13 Replies
from a few months back..I heard elitepvpers planning to make a GM Console...that really works....
I wonder if it finish or not..?
|
Wie stellt man die Console ein oder für was ist die console genau?
02/10/2013 - Rappelz Private Server - 3 Replies
Hallo
und zwar wollte ich fragen was die Console Genau ist,
und wie man diese dann Richtig einstellen tut.
Wäre sehr nett wen ihr mir dabei Helfen könnt.
Google und suche hier bei epvp haben bis jetzt nicht´s
gefunden.
Falls es euch hilft ich habe 7.3 Files
Auth, Ubload, und Gameserver Funktionieren Einwandfrei.
|
[RELEASE] Console Commands for Lame Console Look
12/07/2011 - CO2 PServer Guides & Releases - 12 Replies
Well, to avoid any further useless posts on this subject... here are a ton of console based commands that will control the game from the server console. I will not explain what each does, it should be pretty easy to figure out, and I don't intend to answer stupid questions. If its a good question, I will answer it.
public static void DoStuff()
{
bool flag = true;
Console.Clear();
Console.ForegroundColor = ConsoleColor.Red;
...
|
All times are GMT +1. The time now is 23:11.
|
|