Author: admin

  • Blog
  • Author: admin

how to vertically middle align text in div-HTML tip

Recently in one of the project I have to vertical align text in div. so doing some internet search I have found there are no proper way to do it. So I thought it would be good do share this within my readers. Here is the code do vertically align text in div. this is

How to take ScreenShot in C#

To create a screenshot in c# we need to use drawing api of the .net framework First you have import System.Drawing.Imaging name space with following code… using System.Drawing.Imaging; here is the code in C# for screenshot. int screenWidth = Screen.GetBounds(new Point(0, 0)).Width; int screenHeight = Screen.GetBounds(new Point(0, 0)).Height; Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight); Graphics

Static vs Singleton in C# (Difference between Singleton and Static)

Recently I have came across a question what is the difference between Static and Singleton classes. So I thought it will be a good idea to share blog post about it. A singleton classes allowed to create a only single instance or particular class. That instance can be treated as normal object. You can pass

Breaking changes in Silverlight 1.0

Silverlight is day by day becoming more and more advance. I have found a great link that describes what’s drastic changes in silverlight 1.0 then older versions like mix.Mr. Joe Stegman’s have point out this things in his blog. Here is the link for that blog. http://blogs.msdn.com/jstegman/archive/2007/06/06/more-v-1-0-changes.aspx