How To Ideas | How To Articles | How To Tutorials


List/Grid Tag Archives: csharp

How To Apply Gamma Filter on Images using C#

First of all, I want describe about the term Gamma and its effect. According to the information found on internet especially Wikipedia, In the early days of television, the intensity produced by a CRT(Cathode Ray Tube) is proportional to the input voltage raised to the power gamma. The value of gamma is dependant on CRT but it is usually close to 2.2. A Gamma Filter attempts to correct for this…. Read more »

How To Disable Session State Creation In ASP.NET

As ASP.NET Session State is on by default in ASP.NET, and if you are not using Sessions in your website, you should prefer to disable it, because it will save your server load and will also help you in optimizing your website. Instructions: If you are sure, you don’t want to use session on any of your website page, then turn off sessions completely by adding following lines of code… Read more »

How To Create, Delete, Edit, Select Registry Keys And Its Values Using C#

Here is our sample project available for you to download for free in which we have covered a number of topics you can learn to manipulate Registry Keys. This project is written in C# and its a console application. Project Features: Finding Registry Keys By Searching For Registry Keys Or By Searching For Registry Values. Deleting Registry Keys And Registry Value Fields. Creating New Registry Keys And Registry Key Values…. Read more »

How To Create DWORD Value In Existing Registry Key Using C#

A DWORD is an unsigned integer and on x86 machines, a DWORD value is 32 bits long but simple string value is of 16 bits only. In my last article on Registry Editing using C#, I shared about creating simple string values in Registry Keys, but if you want to create DWORD you have to specify this while creating Values in Registry Key, otherwise it will consider your Value as… Read more »

How To Create Registry Key Or A Value In A Registry Key

Continuing my discussion on accessing Registry Keys using C#, in this article I will discuss about creating new Registry keys or creating values in an existing Registry key. Instruction: To create a new Registry Key as a sub Key of any existing registry key, use CreateSubKey method of RegistryKey class. RegistryKey rk = Registry.CurrentUser; rk.CreateSubKey("HowToIdeas"); To create a value field in any existing Registry Key use SetValue function present in… Read more »

How To Invert Colours Of An Image Using C#

Inverting the colours of an Image means that we are subtracting colour of each pixel in that image from 255. As every pixel colour value ranges from 0 to 255 so total of 256 values, and we can change the value of any pixel as per our requirement. As this process is very slow and unsafe, most of the time, if we do any kind of mistake, it will crash… Read more »

How To Set Image Opacity Using C#

In this article, I will be showing you a complex manipulation i.e Setting image Opacity of any Image, which you can learn and try to apply on other images. Now this tutorial requires you to be very clear with the concepts of how Images work and how in theory we can manipulate their properties like colours or opacity. Also you need to have some knowledge of Matrices from Mathematics. Even… Read more »

How To Create Random Password Generator In C#

In today’s article, I will just show you how to create a very simple but useful application to create Random Password Generator in C#. I will be using Random class present in .NET to generate random numbers which then i will use to generate random character based on that number. You need not to be expertise in C# to create this application as in this application I will be using… Read more »

How To Perform Searching In Registry Keys Using C#

To continuing my discussion about Registry Keys,  I would like to share one more trick about Registry keys here. As we can perform searching in Registry Keys, in Registry Editor, now I will tell you how can we perform similar kind of searching in Registry Keys using C#. Now if you are familiar with RegistryKey class in .NET, and searching a particular substring in string, then you can perform this… Read more »

C# Tips, Tricks for Beginners eBook–1 released

Here is our 1st eBook, which you can download for free and can learn lot of stuff. Using this free resource, you can learn the basics of C# programming, tips, tricks tutorials the easy way.    This book is released with the help of TheWindowsClub. Here is List of all the 20 Tutorials: How to Create SQL Connection in C# How to Write Text to a Txt File in C#… Read more »



© 2012 How To Ideas. All rights reserved.
Proudly designed by Theme Junkie.