A C# Argument Parser for a Windows Console Application

by praveen 1/11/2009 9:01:56 AM
There are a multitude of Argument Parsers available online. So why am I writing my own? Well to be frank… I did a search and couldn’t find anything that would be either “easy” to implement. I know that this is not much, but hope other programmers might find this useful if they are as lazy as I am and looking for a quick solution :-) I was actually looking for a parser which would return something like a Hashtable which i can loop through and load the values into properties of some sort. So here... [More]


Visual Studio 9 - More control over Recent Projects list in Start Page

by rahul 8/28/2008 5:02:59 AM
If you work with a lot of samples, the chances are quite likely that you will end up in a rather dirty list of Recent Projects List in Visual Studio. I'm personally quite nit-picky and I really hate it when I find something like this... Now... I don't know which of these Samples should I click on (since I have two in the list!). Anyway, there are multiple reasons why you would like to remove the junk entries from this list. One way is to open the Registry and navigate to HKEY_CURRENT_US... [More]


Recursively listing all MOSS Site Collections and Sub Sites

by praveen 8/16/2008 7:54:54 AM
One of the painful tasks for a MOSS Admin is to make a list of all site-collections, sub-sites and nested sites. If you have allowed your customers to create their own sub-sites off a site collection or root site, it can turn out to be a really tough trying to create a list of all those. Our production engineering team came across the exact same problem. Recently they were planning to migrate the production data to another Test server to do some testing. While planning this, we realized that the... [More]


4 ways to send a PDF file to the IE Client in ASP.NET 2.0

by Rahul 6/19/2008 8:50:58 AM
In this scrap, I am sharing a project using which you can send PDF files to the IE Client in four different ways. Create a new C# Website. While creating the following pages ensure that you DON'T have "Place code in Separate file" checkbox as checked. You need to create 4 pages called "Way1.aspx", "Way2.aspx", "Way3.aspx" and "PDFContainer.aspx" without a code behind. So the four different ways which I was talking about is as follows... 1) Y... [More]


Visual Studio 2008 - More control over Recent Projects list in Start Page

by Rahul 6/17/2008 8:19:00 AM
If you work with a lot of samples, the chances are quite likely that you will end up in a rather dirty list of Recent Projects List in Visual Studio. I'm personally quite nit-picky and I really hate it when I find something like this... Now... I don't know which of these Samples should I click on (since I have two in the list!). Anyway, there are multiple reasons why you would like to remove the junk entries from this list. One way is to open the Registry and navigate... [More]


C# Example for a File In Use

by praveen 6/13/2008 8:38:16 PM
Recently I was working on some code where it was required to open a file, write something to it and close it. I ran into a small problem while considering the code. Since this was a Doc file the problem was that how do I check if the file was already open or not?  If the file is already open for editing by some other user, how do I write to it? Like all good programmers I looked around for a code sample on the Internet, although I found some great examples on the net, I didn't find a good C... [More]


Play with Colors - Part 2 - Check the font on a specific background using .NET reflection

by Rahul 6/13/2008 2:30:25 AM
I have already shown how to use .NET reflection to get the information about all the colors in .NET. Let's say you want to check out how a specific colored font would appear on any background, you may like to check this sample. Use the code which follows to get an output like the one below. There are various ways to get this output, but I guess this code is pretty small and will show you some of the things that you could do with System.Reflection in .NET. Here is the code... <%@ ... [More]


Play with Colors - Part 1 - See all the colors using .NET reflection

by Rahul 6/10/2008 11:58:00 AM
When you work on designing a website, you may find it difficult to remember all the color names and visualize them. At least, I am personally not very good with color selection and find it really hard to recall the color names. So, in this scrap we will check out how to use .NET reflection to print out all the color names along with the colors... There is a very small piece of C# code which I have used here to create a 2 column color table. Check the sample And here is the code that would ... [More]


Search


Tags



Categories

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

All Items
Sign in

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0