Posts

Showing posts from 2017

Combining multiple images to single one height wise using C#

 public static Bitmap MergeImages(List<Image> lstImages)         {             var width = 0;             var height = 0;             foreach (var image in lstImages)             {                 height += image.Height;                 width = image.Width > width                     ? image.Width                     : width;             }             var bitmap = new Bitmap(width, height);             using (var g = Graphics.FromImage(bitmap))             {                 var localH...

Daily Programming Tips

Infragistics Ultrawingrid  Disable activation   e.Layout.Bands(0).Columns("DealError").CellActivation = Activation.Disabled Change color of disabled cell   e.Layout.Bands(0).Columns("DealError").CellAppearance.ForeColorDisabled = Color.Red Get Content Type of a web page             var request = HttpWebRequest.Create("http://www.google.com") as HttpWebRequest;             if (request != null)             {                 var response = request.GetResponse() as HttpWebResponse;                 string contentType = "";                 if (response != null)                     contentType = response.ContentType;             }           ...