Adding indentation and headings to .NET DropDownList

Posted in C# Programming, VB .Net Programming on April 21st, 2010 by phoenixdigital

I have been able to add indentation to dropdown boxes to allow for easier user viewing in many languages… until I met .NET. For some reason when adding spaces to the text in a ListItem the spaces are magically removed.

I was wanting to acheive a DropDownList like below.

Also at the end of this post is a way to achieve the unselectable headings in the example above.

Read more »

Tags: , , , , , , ,

Form Recovery in Firefox

Posted in Blog2Blog, General Web, Windows on April 21st, 2010 by phoenixdigital

Great little plugin for firefox that will recover lost form data. I installed it a little too late but now I am ready for the next time a website/browser/internet connection craps out on me.

Tags: , ,

Number formatting in c#

Posted in C# Programming on April 13th, 2010 by phoenixdigital

A quick simple note on how to add prepending zeros to a number

int nMaxNumber = 3;
string strValue = string.Format("{0:0000}", nMaxNumber);

strValue will contain 0003

I will add more examples as I need them

Tags: , ,