2 or More Domain Names Linked to the Same Folder

Most if not all web hosting services allow users to link two or more domain names to the same account to save them the cost of a new account for each domain name. With such …

Reading Excel 2003 and 2007 Files Using OLEDB

One of the feature of the application I'm working on these days is allowing the user to import data from Excel 2003 and 2007 files. After some research I found out that OLEDB is the …

Lock, Sleep or Hibernate Windows using C#

I don't think there is a Windows developer who has not done this with his or her favorite programming language. So here is the C# version. Putting Windows in Sleep or Hibernate mode can be …

A PInvoke Wiki for .NET Developers

PInvoke is short for Platform Invoke which is a service in the .NET Framework that enables managed code to call unmanaged functions in dynamic link libraries (DLLs). PInvoke.net is a wiki of Win32 and other …

Reading and Writing Text Files in C#

With all the DBMSs out there, text files are still widely used when developing applications. They are small, fast and do not require any library or application to be installed in the client machine. The …

Saving User and Application Settings in WinForms

Before the .NET Framework application settings were saved in INI files and the Windows Registry. But the .NET Framework introduced a much easier way using an XML file. The file has the name of the …

2 Ways to Confirm Deletion in an ASP.NET GridView

When a GridView is used to display and manipulate data, the Delete button can be displayed next to each record to easily delete a single record, or at the bottom of the GridView to delete …

How to Download a Web Page in WinForms

Sometimes a desktop application might need to download a web page to be displayed to the user or screen scrapped.

Visual Studio's "The Project Location is not Trusted" Message

Just like all the other developers using Visual Studio, I got this message too. The reason I wrote this post is every post I found about this message gives one of the two reasons listed …

DOS Batch File Scripting Tips That Work in Vista

Batch files have been around since the early Ms DOS days. They are text files that contain a list of command-line executables. They can be compared to UNIX shell scripting, but are much simpler.