Trigger a Timer Event at the Specific time of the Day in a Windows Service

I have used timer many times in Windows Form Application. It’s a simple control that is easy to use and implement. Lately, I was working on a Windows Service where there was a requirement of implementing a periodic job. The timer available in Windows Form is located in System.Windows.Form namespace which is definitely not available … Read more

ASP.NET 4 Breaking Changes

The ASP.NET 4.0 has been a core update to ASP.NET 2.0. .NET 3.0 and .NET 3.5 were based on .NET 2.0 having additional assemblies only, not the core components. If you have installed all of these frameworks 2.0, 3.0, 3.5, 4.0 and you try to upgrade your ASP.NET 2.0 application, in IIS you will be … Read more

Microsoft OpenDoor Expo Jeddah 2010

Microsoft OpenDoor 2010 Saudi Arabia took place in two cities Riyadh (2nd and 3rd Nov) and Jeddah (7th Nov) at Intercontinental Hotel. It was the first time that Microsoft CEO, Steve Ballmer visited KSA and delivered the Key Note but his visit was limited to one day and it was in Riyadh only. The registration … Read more

Server.MapPath

Server.MapPath specifies the relative or virtual path to map to a physical directory. Server.MapPath(“.”) returns the current physical directory of the file (e.g. aspx) being executed Server.MapPath(“..”) returns the parent directory Server.MapPath(“~”) returns the physical path to the root of the application Server.MapPath(“/”) returns the physical path to the root of the domain name (is … Read more

Some Visual Studio ShortCut Keys

Shortcut Description F3 Finds the next occurrence of the previous search text. F5 Start debugging F7 Jump to code behind file from .aspx files F8 Moves the cursor to the next item, such as a task in the Task List window or a search match in the Find Results window. Each time you press F8, … Read more

OpenFileDialog.SafeFileName

I had developed an application in VS2008 with .NET 2.0 . The application was deployed using the VS2008 deployment project  with .NET Framework as pre-req. AutoCAD 2009 was already installed on all the client machines so the pre-req conditions were satisfied so .NET Framework was not skipped during the installation of the application. Later on,  … Read more

Missing Items in Visual Studio 2005 Menu

I noticed some missing menu items in the VS2005 (like clean, rebuild, and many others) but i continued by using the commands from other locations; until I got stucked!  I wanted to export a form as a template but the Export was not available in the File menu. The details of my environment are: WIN … Read more

Constansts in C#: const VS readonly

Pop quiz: What’s the difference between these three declarations? And, more importantly, when should you use each one? private const int _Millenium = 2000; private static readonly DateTime _classCreation = DateTime.Now; private readonly DateTime _InstanceTime = DateTime.Now; The first creates a compile-time constant, the second creates a run-time class constant, and the third creates a … Read more