Archive for the 'C Sharp' Category
Changing the drag cursor in C#
13Oct09
While implementing drag and drop operation, it might be necessary to change the drag cursor. There could be several reasons for doing so. For example, you might want to have different cursors for different categories of nodes dragged from a tree. Similarly, you might want different cursors in the different regions of the same target [...]
Filed under: .NET, C Sharp | Leave a Comment
Tags: Drag and drop, changing drag cursor, GiveFeedback, DragOver
Handling System Commands in C#
09Oct09
Recently, at my work, I had to trap few system commands in C#. I had to disable the movement of Form and few other basic operations such as minimize, maximize, close while the buttons for them still kept visible.
Doing this is very simple. All you need to do is ‘override’ the ‘WndProc’ method inside the [...]
Filed under: .NET, C Sharp | Leave a Comment
Tags: Disable Form Movement, SC_MOVE, System Commands