Latest posts
-
C# Perceptron Tutorial
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 1...
-
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...
-
C# Http Server With ASP.NET
This tutorial will show you how to create a HTTP server that can parse ASP.NET files. It will be able to serve pages containing html,css and server-side code. As always I’ll try to keep the code simple - luckily .NET...
-
C# Simple Form with Rounded Corners
This tutorial aims to show how to make a C# Form with rounded corners, using a very simple method. It’s not actually our policy as we won’t use code here… 1. Select a background image for the Form(window) - it...
-
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# EventHandler with Arguments
All the methods that are called by events require two arguments: object sender EventArgs e The event calls a method using those 2 parameters, so we can’t directly add a custom argument. If we have this code and we want...
-
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 class...
-
C# Send email using Gmail
In this tutorial … we’ll send emails :) using C# of course. 1. Required: SMTP server I use: smtp.google.com , you must have a Gmail account Little attention / some basic knowledge of C# 2. Creating the client We start...
-
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# Moving form without border/title bar
1. Removing the title bar and border In this tutorial I will show you how you can make a draggable window (Form) with no title bar or border. By default, when you remove the border of a Form, you can’t...