• C# Minecraft Pixel Art Generator

    Good morning class, (see what I did there:P ?) Today we will discuss a very important subject: creating pixel art in Minecraft from a given image.     Ok guys, so I saw people creating pixel art in Minecraft (trying...


  • C# Inject a Dll into a Process (w/ CreateRemoteThread)

    Since I’ve been asked if this is possible - well…you can do Dll Injection using C# but the injected Dll must be written in a language that doesn’t depend on a CLR (C/C++ would be a good option here, but...


  • C# Backpropagation Tutorial (XOR)

    I’ve been trying for some time to learn and actually understand how Backpropagation (aka backward propagation of errors) works and how it trains the neural networks. Since I encountered many problems while creating the program, I decided to write this...


  • C# Get Desktop Screenshot

    I found this feature while looking inside Graphics class and since it was so simple to use, I decided to post it here. As I said, it doesn’t require more than 15 lines of code - this function: Graphics.CopyFromScreen does...


  • C# Register a Url Protocol

    This tutorial will show you how to register a custom Url Protocol for your application. Basically, you can control your application by simply clicking an Url address like this one: myApp:doSomething Note: In this tutorial, I’ll name the custom protocol...


  • C# Falling Snowflakes on Desktop

    Since it’s winter, I decided to write about how to create an application that makes snowflakes fall on your desktop. It’s just like snowing on your desktop, but the application is pretty basic so there’s space for improvements - I...


  • C# Send Text to Notepad

    This tutorial focuses on sending text from a C# program to any other window by using 2 functions provided by user32.dll. The big advantage of this method is that the window you’re sending the text to doesn’t require focus. Don’t...


  • C# Edit Registry Keys or Values

    First Before starting to edit registry values/keys, include in your project’s source this namespace Microsoft.Win32. It will give you access to the required Registry functions. So, make sure you add this: 1using Microsoft.Win32; In order to edit anything, you must:...


  • C# Perceptron Tutorial

    Intro The Perceptron is basically the simplest learning algorithm, that uses only one neuron. An usual representation of a perceptron (neuron) that has 2 inputs looks like this: Now for a better understanding: Input 1 and Input 2 are the...


  • C# Compile at Runtime

    To our luck, .NET Framework contains some classes that allow us to access the compiler and with it, we can compile our code at runtime. Basically when our executable will run, it will compile a small piece of code stored...


  • C# Load dll at Runtime

    This is a method used to import a dll during the program’s execution (at the runtime) without adding the actual library as a reference. Obviously, you will need: - A DLL made in C# - only a function and a...


  • C# Countdown Timer

    A timer in C # is an object that executes an action after a specified time interval - for example, it can call a method every 5 seconds. The best way to understand how it works is to use it...


  • C# Connect to MySql

    MsSql or MySql ? What to use ? I prefer MySql because I work with it more often. Unfortunately .NET doesn’t support by default this kind of database… There’s a solution! It’s a small library called Connector/NET, available on MySql’s...