| A Docking Control That Can Be Dragged And Resized by the User |
| The Code Project |
| One of the first features of C# that took my interest was the ability to Dock a Control onto the edge of a Form. Now I could attach a Control (or more likely a composite control by deriving from UserControl) onto a Form edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the control to a different edge and be able to resize the control so that they can customise the application area to suit their own preferences. |
|
| A Sneak Preview of Visual C# Whidbey |
| MSDN |
| Learn about new language constructs, compiler features, productivity enhancements, and debugger improvements in the upcoming "Whidbey" release of C#. |
|
| An Event to Remember |
| MSDN |
| Last month, we talked about performance and boxing. One of the questions that came up from a reader was why the Perl version is so much faster than the C# version. One answer is that Perl is very good at what it does. One reader pointed out that I had forgotten to tell the Regex to compile the regular expression rather than interpret it on every match. In Beta 1, this is done by passing "c" as the second parameter to the Regex constructor (there's an enum to do the same thing in Beta 2). This cuts the overhead nearly in half, and reduces the elapsed time for the fastest version down to a little less than 7 seconds. |
|
| Bunnyaruga: GAPI, Hekkus, Basics of Deployment |
| The Code Project |
| This article shows an example of a game that uses the GAPI and Hekkus libraries. It also shows a nice and free way of deploying your games/applications without requiring the .NET Framework installed on the end user machines. |
|
| Christian's Code Project Screensaver |
| The Code Project |
| Well, here it is. I'm sorry that the article is non-existant, it is very late, and I need to go to bed, but I couldn't wait to post the fruit of my labours. I will write a full article in support of my screen saver hopefully tomorrow, but I don't have access to any web space, so I'm going to use Chris's to show you all what I have done so far. The screensaver is written in C#, it simply creates a form that takes up the full screen, and it can only be turned off my pressing a key. This is because when Chris has his XML feed going, I will scroll the latest links from CP in semi transparent text, and moving the mouse will generate a cursor, and clicking on an item will stop the screen saver and launch the URL. |
|
| Columns reordering and icon columns in DataGrid |
| The Code Project |
| This article demonstrates how to reorder columns (using column drag-and-drop) and icon columns in the DataGrid |
|
| Command Pattern in C# with Generic Event Handlers |
| GotDotNet |
| This is an implementation of the GoF Command Pattern in C# with Generic Event Handlers (for example all MouseEventArgs events are handled with: private void GenericHandler(object sender, System.Windows.Forms.MouseEventArgs e) { ExecuteCommand(sender, e); } and all KeyPressEventArgs with: private void GenericHandler(object sender, System.Windows.Forms.KeyPressEventArgs e) { ExecuteCommand(sender, e); } Pattern enables you to never have to check your event handlers for null, is multi-thread safe, and demonstrates an (albeit simple) undo function. No comments in the source code, so easiest way to see what's happening is to use the included sample Windows forms application. Hope you find it helpful! - Clay |
|
| Dancing Particles: Adding Points, Lines, Fonts, and Input to the Managed Graphics Library |
| MSDN |
| Learn to add points, lines, and more to the managed graphics library using GAPI and the Dancing Zombie sample. |
|
| Dancing Zombies: Adding Bitmaps to the Managed Graphics Library |
| MSDN |
| Learn how to load and display bitmaps, animated bitmaps, key transparency, and more using GAPI and the Dancing Rectangles sample. |
|
| DataGrids, Forms and Delegates. |
| The Code Project |
| This article describes using a Delegate to pass data from a DataGrid in one form, to set of controls in another form. |
|
| Developing A C# Vector Drawing Application - Part 2 |
| C#Today |
| This is the second part of a series where we build a vector based drawing application. In Part 1, Budi Kurniawan outlined the specification for the application and discussed some techniques for working with forms with the .NET Framework Base Class Library. In this part, we will continue with our development, first by discussing the various shapes for our drawing application and then writing event handling for some of the controls. |
|
| Dockable Control In C# |
| C# Help |
| edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the control to a different edge and be able to resize the control so that they can customise the application area to suit their own preferences. |
|
| Docking Control |
| C# Corner |
| One of the first features of C# that took my interest was the ability to Dock a Control onto the edge of a Form. Now I could attach a Control (or more likely a composite control by deriving from UserControl) onto a Form edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the control to a different edge and be able to resize the control so that they can customise the application area to suit their own preferences. |
|
| Drag and Drop between ListBox Controls |
| The Code Project |
| created a simple C# Windows Forms application. Then I added two list boxes using the form designer. Now my intention was to fill up the list box on the left with some text. By the time I complete the small sample program, I should be able to drag an item from the list box on the left and to drop it on the list box on the right. |
|
| Drag and Drop for Board Games |
| C# Corner |
| This application shows how the drag and drop features in C# could be used to create a simple board game or whatever. I didn't put any type of game in the application in order to keep the source code simple. The application just lets you move the dots around the board. It allows highlighting a tile when you drag over it, doesn't allow dragging onto a tile with a dot, and the cursor changes depending on whether or not you can drop the dot. |
|
| Drag And Drop in System.Windows.Forms.ListView |
| C# Help |
| Drag and Drop operations in windows can be achieved using 3 simple events:.DragEnter, DragLeave, DragDrop. The example provided in this articles show you 2 listview items and dragging and dropping the items from one list to the other.
|
|
| DragData Demo |
| The Code Project |
| How to pass custom objects in a drag-and-drop operation |
|
| Drawing B-Spline Curves |
| C# Corner |
| The attached source code project draws spline curves between two points. Its a cubic spline fitting means program start drawing curve after four clicks. |
|
| Events and Delegates simplified |
| The Code Project |
| This article shows you how to design events for your classes. |
|
| Fully Select Row In A Window’s Form Datagrid Control |
| DotNetJunkies |
| Paul explores what to do if you want to change the default method of how the windows datagrid responds to a click event. With only a few lines of code implemented into the Datagrid_MouseUp event, the entire row selected becomes highlighted. |
|
| How to sum the fields in a Windows Forms DataGrid control and display the calculated totals in a footer by using Visual C# .NET |
| http://www.kbalertz.com/ |
| (842290) - Explains how to calculate the sums of the values in the columns of a Windows Forms DataGrid control and display these sums in a footer. Requires knowledge of Visual C# .NET. |
|
| How to sum the fields in a Windows Forms DataGrid control and display the calculated totals in a footer by using Visual C# .NET |
| http://www.kbalertz.com/ |
| (842290) - Explains how to calculate the sums of the values in the columns of a Windows Forms DataGrid control and display these sums in a footer. Requires knowledge of Visual C# .NET. |
|
| How to sum the fields in a Windows Forms DataGrid control and then display the calculated totals in a footer by using Visual Basic .NET |
| http://www.kbalertz.com/ |
| (836672) - Explains how to calculate the sums of the values in the columns of a Windows Forms DataGrid control and display these sums in a footer. Requires knowledge of Visual Basic .NET. |
|
| Mouse and Key Events |
| C# Corner |
| This article explains the usage of key and mouse events. The following code shows you how you can read mouse position on mouse move. |
|
| Polygon Triangulation in C# |
| The Code Project |
| Triangulate a polygon by cutting ears in C# |
|