JUN
2011
17
0 Comments
601 Hits
Getting First and Last Date of Months Using C#
Posted under: Tutorial

C# has a DateTime structure to hold date and time value in a single variable. The following script will gives you first and last date of given months in two lines of C# code. Assuming that the first and last dates we're looking for is for current month (now), the code would be like this:

DateTime FirstDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
DateTime LastDate = FirstDate.AddMonths(1).AddDays(-1);
Read More
MAY
2011
25
0 Comments
745 Hits
Adobe Reader 9.x axAcroPDFLib at closing problem C#
Posted under: Tutorial

If you code an C# .NET application using axAcroPDFLib to generate a PDF document, shows it to the user, and found error message on your application at application closing like this (instruction and memory address may vary):

The instruction at "0x0700609c" referenced memory at "0x00000014". The memory could not be read

It was caused by Adobe Reader 9.x axAcroPDFLib bug. The axAcroPDF control doesn't disposed properly during form closing event.

Read More
OCT
2009
29
1 Comment
401 Hits
Solving DownThemAll File Access Error on Windows 7
Posted under: Tutorial

Mozilla FirefoxIf you are using Mozilla Firefox browser on the latest of Microsoft Windows OS, Windows 7, you may encounter File Access Error while downloading files using DownThemAll plugin. I am using Mozilla Firefox v3.5.4 with DownThemAll v1.1.7.

Read More
FEB
2009
23
0 Comments
163 Hits
Remove Registry Editing Restriction
Posted under: Tutorial

Windows Logo

From my previous article about enabling a disabled Task Manager, there is an optional step or method which is using Registry Editor as tool to fix the DisableTaskMgr restriction. If you might  found the following error message when you try to start the Windows Registry Editor, it means the DisableRegistryTools Policy is enabled.
Registry Editing has been disabled by your administrator
Read More
FEB
2009
23
0 Comments
191 Hits
Enabling The Disabled Task Manager
Posted under: Tutorial

Windows Logo Using many "heavy" application/services running at the same time may cause some application to "lock up" or "hang". You can end those application process directly by using Windows Task Manager. But somehow when you try to start the Windows Task Manager, you found the following error message:

Task Manager has been disabled by your administrator

This error is caused if the DisableTaskMgr restriction is enabled in the Registry. If Task Manager has been disabled without your knowledge, it may be a symptom of a virus. I strongly recommends that you update your antivirus definition and perform a complete scan of your system.

Read More
JAN
2009
29
0 Comments
171 Hits
Connecting Cellular Emulator to Windows Mobile 6 Professional Emulator
Posted under: Tutorial

winmobileCellular Emulator is included in Windows Mobile 6 Professional SDK Refresh. It is very useful if you currently developing an application which utilizes SMS and/or phone call features on the device. The Cellular Emulator can emulate making and receiving a call to Windows Mobile 6 device emulator, as well as sending and receiving SMS.

However, connecting the Cellular Emulator to Windows Mobile 6 Emulator is not so straight forward. It's not like just start the emulator and they automatically connected. It does require a little trick to make it works.

Read More
JAN
2009
28
1 Comment
356 Hits
Tutorial: Windows Mobile 6 Hello World Application
Posted under: Application, Tutorial

winmobileThis tutorial will show you how to create a Hello World application for Windows Mobile 6. This tutorial purpose is to introduce Windows Mobile programming using Microsoft .NET Compact Framework (C#) and Windows Mobile 6 SDK Refresh.

Read More
SEP
2008
13
0 Comments
228 Hits
Power Management Commands in Windows XP
Posted under: Tutorial

Windows XPFor anyone who need to know about commands that shuts down, reboot, hibernate, log off, and/or locking the computer in Windows XP by executing it from Windows XP command prompt or 'console'. This command may be useful in task scheduling or making it programmable.

 

Read More