Get rid of Hard Drive Space Eating Virus

Dear reader

This post will be about how to get rid of the Space Eating Virus, however before we know what to look for and what to remove, we need to know what it does.

The Get rid of Hard Drive Space Eating Virus is usually a program which is working in the background on your system (in case you got one) and creates files on your hard drive. During this process which is positive at anytime your computer is running it can have different techniques and types of running stages in connection to creating trashfiles on your computer. Read more [...]

CSS & HTML Centering Stuff

In this post called “CSS & HTML Centering Stuff” I will explain how you can easily center text, images and other items in HTML and CSS.

So let’s begin with the text:

/*    This will center the text    */
p {
    text-align: center;
/*    This is also an option inside any class    */
.some-class {
    text-align: center;

Now let’s center an image or a complete block: Read more [...]

C# Custom Colors in Consoles

Ever wanted to make colored lines in a Console Application? By this I mean, for example something went wrong and shows up "An error occurred! Please try again.". Let's say you want only errors be colored red and when sothing succeded it would be green, like "Success!". it is indeed really simple to get this working.

I will make a speciffic example for this post:

C# How to use StreamReader and StreamWriter

In this post I want to teach you how to use StreamReader and StreamWriter in c# an efficient way.

So what you need first, is to include the System.IO library to your project.

This step is really easy, we just need to type the following above the class section: Read more [...]

C# Moveable non-border window

If you wanna have your own window design for your program, you probably wanna get rid of the windows border with the minimize and close buttons. But then you ask yourself, how you want to move it around the screen? You realize you cant drag the window anymore. So how are we going to fix this? Then you just need a C# Moveable non-border window!

The answer to this question is very simple:

  1. You need to define

    as integers.

  2. You need to define

    as boolean.

  3. You need a MouseDown event for the element you want to move your window with, in this case I am using the main panel. This MouseDown event sets

    to true.

  4. Next you need a MouseMove event which looks like this:
  5. if (mouseDown)
            mouseX = MousePosition.X -200; // This way we have the mouse closer to the middle of the window
            mouseY = MousePosition.Y - 40;
            this.SetDesktopLocation(mouseX, mouseY);
  6. And at the end you need a MouseUp event to exit the MouseMove event, containing
    mouseDown = false;

So I hope this was a helpful post for you. Please respond with a comment if you liked it!