February 2006 - Posts - Danie Bruwer

February 2006 - Posts

Cancelling the "Opening" event of an ContextMenuStrip
15 February 06 07:03 PM | danieb | with no comments
I must say I am impressed with the “ContextMenuStrip” in Windows Forms 2.0; it has some awesome new features.
So what I am doing at the moment is hooking up a “ContextMenuStrip” to a “TreeView”
I was wondering if there is a “clean” way to cancel in the “Opening” Event of a ContextMenuStrip if the cursor isn’t on a treenode; Other that doing hit detection.

Doing primarily ASP.net maybe some Windows Forms Guru can help me out :)

Best Data Recovery Tool
06 February 06 11:22 PM | danieb | 2 comment(s)
So I wanted to reinstall my machine at work and I used some automated restore / operating system CD that came with my HP machine. (The serial number for the machine didn’t seem to work with the XP CD I had). So my external 300GB HDD was still connected and I just clicked next -> next -> without actually reading it actually created some bootable restore on my external HDD.

Well to cut a long story short I tried about 4 programs before I found Ontrack EasyRecovery™ Professional. The problem with the other programs was that it assumed that the current file system and the one to recover from is the same. (Before the format the File System was FAT32 and after NTFS)

So i got everything back (The directory stucture was a bit messed up but what the hell)
:) :)


Some motivation to upgrade to 2.0 :)
02 February 06 06:21 PM | danieb | with no comments

The best function ever :

string.IsNullOrEmpty(str)