List/Grid

Tag Archives: C#

Program to find Anagrams

An anagram of a word or phrase is the result of rearranging its letters to form another meaningful word or phrase. For example, an anagram of “anagram finder” is “garden… Read more »

Upload a photo on Facebook and Tag it using C#

To upload a photo on Facebook, we need to issue a HTTP POST request to https://graph.facebook.com/[USERID]/photos url. and to tag a user we need to issue a normal HTTP GET… Read more »

Create Tiff Image from multiple images – C#

Create Tiff Image from multiple images – C#

The .NET framework provides very good support for generating and manipulating bitmap images. We can transform images from one form to another and .NET can also be use to generate… Read more »

Getting column names from NHibernate Query

To get the column names from NHibernate Query, we have to use NHibernate.Transform.IResultTransformer here is a small example I have created public class QueryTransformer : NHibernate.Transform.IResultTransformer { private List<string> result… Read more »

Create PDF from HTML using Evo HTML To PDF Using C#

If you want to convert HTML to PDF in .NET, then I bet EVO HTML to PDF is one of the best paid tools available in market. In this you… Read more »

Merging Two Images in .NET

To merge two images what all we need to know is the what would be the final size of image. that is, equivalent to first image or second image or… Read more »

Simple Indexer Example In C#

In this example I will create a simple indexer in C# class indexer_class { List<int> index = new List<int>(); public void set_length(int length) { if (index.Count < length) { index.AddRange(new… Read more »

Lambda expression, predicates and anonymous method C#

Suppose we have a list of integers and we are required to find all the numbers divisible by 3 from the list. So what we eventually do in the previous… Read more »

Handle QueryString Using Reflection In .NET

Recently we encountered an instance where we are required to use the querystring. I created a small class, that will read the query string and return the properties based on… Read more »

Playing Mp3 files from a remote location on Windows Smart Phone using C#

To Play mp3 files from a remote location in smart phone, we are required to WMPLib.dll’s WindowsMediaPlayerClass Class. I was not able to find a way to stream the music,… Read more »