Latest posts

  • C#/PHP Compatible Encryption (AES256)

    Finding a way to encrypt messages in C# and decrypting them in PHP or vice versa seems to be a “challenge” for many users. I wrote this tutorial to provide some help with this: below, you can find how to...


  • 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# Prevent Reflector from Decompiling

    This is a simple way to protect your application from any so-called “cracker”, without involving obfuscation. Remember that this works only against Reflector (tested on: v7.5.2.1), any other decompilers are “immune”. Technical stuff… The main idea is this: you change...


  • 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# Protect the Password inside a TextBox

    First of all, the TextBox Control is not a secure way to hold passwords - so don’t use it as it is by default. Even with a PasswordChar, the real password is still visible if you use a tool like...


  • C# Ascii Art Tutorial

    If you got here, you probably want to know how Ascii Art works and how to use C# to transform images into text. We’ll do this by making good use of LockBits() and UnlockBits(), and also, a pointer - going...


  • C# Safe Encryption/Decryption using DPAPI

    Data Protection API aka DPAPI is a neat service provided by Windows Operating Systems (newer than Windows 2000) that safely encrypts and decrypts user credentials, using the Triple-DES algorithm. You have to supply the data as byte array in order...


  • 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 In this tutorial, I’ll name the custom protocol myApp...


  • C# Synchronize 2 RichTextBoxes' Scroll

    I recently had a problem when I tried to synchronize the scrolling between 2 RichTextBoxes - that was because these controls behave different than normal TextBoxes. However I managed to solve this…after some time, and I decided to post the...


  • C# Form Fade In/Fade Out

    This short tutorial is made to show you how to create a fade in / fade out effect for a form. Since basic Windows Forms doesn’t provide such an option, it must be done manually. Note: we’ll use timers instead...


  • C# Create Child Forms

    Child Forms are those forms that are found inside another form (parent form). There are multiple ways to create child forms - most of them require to use a MDI Container. Child Forms without MDI Container I, personally, had lots...


  • C# Disable RichTextBox's Smooth Scrolling

    In this article I’ll show you how to disable RichTextBox’s Smooth Scrolling - aka make RichTextBox scroll line by line. I know this is a problem for many developers, it was a problem for me too, so that’s why I...