How To Ideas | How To Articles | How To Tutorials


List/Grid C# Subscribe RSS feed of category C#

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 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 »

General Information On Image manipulations For Designers And Developers

In this article, I will be sharing all the information much needed specially for a Programmer/Developer to manipulate the Image colours. This article needs you to have some knowledge of Matrices from Mathematics. In short,what I will be writing in this article is if we have to manipulate colour of the whole image or transparency, then how theoretically we have to think it first before doing the same in coding… 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 »

How To Generate Random Number In C#

Some times your Application demands for Random numbers generated at run time and proceed accordingly. Say you are creating a game and you want to place monster or some thing like that at some place. That place too is a random one not always predefined. Here in this tutorial, I will show you an example for generating Random integers or double values and finally i will print them on Console…. Read more »

How To Minimize Your C# Application To Taskbar Tray

This is one of those built in features present in C#, which makes your Application look Professional. You have already seen some applications minimizing to Taskbar tray not the actual Taskbar. Like Antivirus programs, which got minimized to Taskbar tray when we try to close them. You can also use same functionality in your C# Application without writing much code. Instructions: Create new Windows Form Project in Visual Studio or… Read more »



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