Latest posts
-
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...
-
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 -...