Status
Not open for further replies.

Platinum

Hello!
Sep 2, 2012
295
282
Hello! So I was recently curious if I could make my console all fancy with colours and gradients and I ended up finding a pretty neat website that everyone may not know about but would appreciate. by Tom Akita shows many examples of what you may want for your own console; at first I was confused over how I would install Colorful.Console but then figured out some few steps which needed to be taken.

Colorful.Console
is offered in both & . For the basic installation, in Visual Studio you would navigate to Tools -> NuGet Package Manager -> Package Manager Console and then in the console you would type Install-Package Colorful.Console -Version 1.2.9 - this will install the library onto whichever solution you execute the installation code.

lN0Jb8b.png

Now you need to be sure that at the top of your code you include:

Code:
using System;
using System.Drawing;
using Console = Colorful.Console;

After that, you may have to change the code which define colours for the console, for example you would change from ConsoleColor.Red to Color.Red wherever it is applicable.

Now you're all set! Use the website to further guide you on how to make colours appear in a specific way on your console, here is one example of the results you could get.

igCOQYy.png
 

TheNotorious

Im dying slowly.
Oct 4, 2014
228
41
Hello! So I was recently curious if I could make my console all fancy with colours and gradients and I ended up finding a pretty neat website that everyone may not know about but would appreciate. by Tom Akita shows many examples of what you may want for your own console; at first I was confused over how I would install Colorful.Console but then figured out some few steps which needed to be taken.

Colorful.Console
is offered in both & . For the basic installation, in Visual Studio you would navigate to Tools -> NuGet Package Manager -> Package Manager Console and then in the console you would type Install-Package Colorful.Console -Version 1.2.9 - this will install the library onto whichever solution you execute the installation code.

lN0Jb8b.png

Now you need to be sure that at the top of your code you include:

Code:
using System;
using System.Drawing;
using Console = Colorful.Console;

After that, you may have to change the code which define colours for the console, for example you would change from ConsoleColor.Red to Color.Red wherever it is applicable.

Now you're all set! Use the website to further guide you on how to make colours appear in a specific way on your console, here is one example of the results you could get.

igCOQYy.png
Haha nice packet! Thanks!
 

lemonycup

New Member
Apr 1, 2020
1
0
Hi guys i am using VB i cant make text in more than one line any help???
for example
dim a as string = "
a"
is wrong, anyhelp
 

Silenos

Obsessed.
Aug 7, 2017
105
65
Hi guys i am using VB i cant make text in more than one line any help???
for example
dim a as string = "
a"
is wrong, anyhelp
Does your problem have anything to do with the library presented here? Not really, it is also not the same programming language.
Next time, create a new topic in the right category, instead of bumping old threads, thanks mate.

You probably want something like this using the Environment.NewLine property:
Code:
Dim a As String = "First Line" + _
            Environment.NewLine + _
            "Second Line"

The underscore is a so called "line continuation character", it's not needed but looks cleaner.
another way would be using the vbCrLf constant:
Code:
Dim a As String = "First Line" + vbCrLf + "Second Line"


By the way, of all the languages you can choose, why Visual Basic?
 
Last edited:
Status
Not open for further replies.

Users who are viewing this thread

Top