List/Grid

Tag Archives: .net

Capture Screen using C#

Create a windows application and set the transparency key of the windows form to System.Drawing.SystemColors.Control. this.TransparencyKey = System.Drawing.SystemColors.Control; Include following namespaces using System.Drawing; using System.Drawing.Imaging; using System.Text; using System.Windows.Forms; using… Read more »

The ?? Operator in C#

I have been through so many scenarios where I needed to use a conditional operator (?:). string s = null; string g = (s == null ? “default value” :… 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 »

Basic Features Of .NET

.Net provides very user friendly environment for developing modern web, windows or any kind of application. 1. Easy development of web applications Provides ASP.NET for developing data driven web applications…. 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) payday loans… Read more »

Authenticate User From LDAP – .NET

The following code will authenticate user from LDAP and is written in C#. string domainAndUsername = _domain + @”\” + userName; DirectoryEntry entry = new DirectoryEntry(_ldapConnectionString, domainAndUsername, userPassword); DirectorySe best… Read more »