|
Get A List Of Installed Applications Using LINQ And C#
To get a list of installed applications we need to look into registry. Microsoft.Win32 namespace contains objects which can be used to work with Windows Registry. In this post I will show you some code where I use the power of LINQ to retrieve and display a list of all applications installed on a machine.
The [...]
Programmatically Retrieve Information About Windows Services Using ServiceController
ServiceControl can be used to get information about a Windows Service on a machine. In this post I will show you how to retrieve information about a service using ServiceControl.
To begin with lets examine the properties for ServiceControl. Through the designer we can set the ServiceName property. This can be set to the name of [...]
Windows Live Video Messages Coming Soon
Microsoft will launch Live Video Messaging facility on 9th September 2008. I have not yet sent anyone a video message in my life, so I am a bit excited to see something like this. At present you can request an early beta access if you are a member of press. I write a blog, does [...]
New Mac vs PC Ads
Apple guys even though running out of creativity with their Mac vs PC ads are not giving up anytime soon. Here are two latest offerings.
Where is Jerry Seinfeld?
Download Internet Explorer 8 Beta 2
Spreading the word here about IE 8 Beta 2 Release. You can download Beta 2 here. There is tons of information already available for this release. Before you decide to install it you should read this link which provides useful information on upgrading to Beta2. Internet Explorer 8 Readiness Toolkit is another great resource [...]
LINQ Equivalent Of Where IN
Working with LINQ to SQL I came across a need of writing a LINQ query equivalent of T-SQL “Where IN” clause. This is what T-SQL query looks like.
SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address,
City, Region, PostalCode, Country, Phone, Fax
FROM [...]
Use Screen Space Efficiently On Windows Vista With Virtual Desktop Manager
Virtual Desktop Manager is tool which lets you create virtual desktops. You can run different applications in different virtual desktops which reduces clutter. Once you get used to working with it you start loving it. I have been using it for a while now and I cannot do without it anymore. You can download Virtual [...]
MSDN Forums Client July CTP Now Available
Since MSDN forums started they have captured substantial share of online forums related to Microsoft technologies. I remember having a discussion with one of the softies about newsgroups and how MSDN forums will eventually replace them (in MS world of course). And now you can interact with Microsoft forums using a client application which is [...]
Visual Studio Book I Am So Looking Forward To
If there is one book I am looking forward to, it is Microsoft Visual Studio Tips by Sara Ford . I am a regular reader of Sara’s blog and I have learned a lot about Visual Studio by reading her blog. Her tips are simple, lightweight but above all very++ useful.
I expect her book to [...]
Windows 7 Conversation Begins
Two senior engineering managers for Windows 7, Jon DeVaan and Steven Sinofsky have started a blog called Engineering Windows 7. I am sure that this will be one of the most watched blogs till other Windows 7 related blogs/sites appear. Reading their first post I get an impression that their blog is an attempt to [...]
Bulk Copy Data Using SQLBulkCopy Class
SQLBulkCopy class in ADO.NET can be used to do bulk copy operations from a .Net application. There are two ways data can be bulk copied using this class. You can either do a single bulk copy or a multiple bulk copy operation. In this post I will show you how to perform a single bulk [...]
Find Duplicates Using LINQ
How can we find duplicate occurrences of values in a collection? I will demonstrate this here using a collection of cities. City class looks like this:
public class City
{
public string Name { get; set; }
public string Country { get; set; }
}
Cities collection is initialised with this code:
List<City> cities [...]
Popular Post
Tag Cloud
Code Snippets
- Get Current Windows User In C#
- Get Width And Height Of Image In C#
- Get Windows Registry Size With WMI And C#
- Reverse Array Elements Using C#
- Convert Hexadecimal To Number In C#
- Get Free Disk Space Using T-SQL
- SQL Server 2008 – Get All Indexes In A Database
- Get Name Of Current Executing Assembly In C#
- Get CD Or DVD Drive Information Using WMI And C#
- Get Last Row From Table Using LINQ To SQL

