Latest posts

  • 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: 1 using Microsoft.Win32; In order to edit anything, you...


  • C# WebClient with Cookies

    Well, you’re probably reading this because you noticed that .NET’s WebClient doesn’t support cookies. Basically, the cookies which are received through the WebRequest are NOT stored and also NOT sent - this is how it works by default. How to...


  • C# Connecting to FTP Server

    In this tutorial I will show you how to use C# to connect to a FTP server and perform basic operations: uploading a file downloading a file deleting a file 1.Connecting & Logging In Before doing operations on files, you...


  • C# Sending data using GET or POST

    In this short article, I’ll show you how to send data to a website from a C# application using GET or POST method. The tutorial also includes how to receive data from a website, by getting the page’s source -...


  • C# Custom MSBuild Logger

    Here’s a short trick about how to make a custom MSBuild Logger. It’s always a good idea to use MSBuild with your own logger (and not the original one) because it provides easier access to the output log. So, I’ll...


  • C# Fix SimpleWorkerRequest Path Issue

    The problem If you ever tried to create an http server that can run ASP.NET code, you may know that you can only open pages from the root directory. If you try to open a page, that is in a...


  • 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: A 2 Inputs + Bias Perceptron Now for a better understanding: Input...


  • C# Simple Http Server

    In this short tutorial I’ll explain how to make a simple Http Server using only C#. The server will be able to serve any page that contains client-side code (html and javascript). Basic stuff When a client requests a page...


  • C# Asynchronous Tcp Server

    This is the model of an Asynchronous TCP server, that can have multiple clients connected, each one on it’s own thread - all of this is done using a relatively short and easy-to-remember code. If you don’t have basic knowledge...


  • C# Read from Excel file

    In this tutorial I’ll show you how to use C# to read an Excel file’s data. - no more than 10 lines of code - isn’t .NET awesome ? The method used is described below… Adding the reference To read...