| ASP.NET Naughts and Crosses |
| C# Corner |
| This article demonstrates the basic techniques used to build "ASP.net Noughts & Crosses" (tic tac toe to our American friends). The game uses the native imaging and drawing features of the .net Framework to dynamically generate a JPEG image which displays the game board to the user. Players can take turns to click on the area of the image where they wish to make a move, their move is then submitted to the web server where, if legal, it is drawn onto the board. The application consists of two aspx web pages which each have an associated code behind page. |
|
| Bypass Graphics.MeasureString limitations |
| The Code Project |
| Graphics.MeasureString can be used to compute the height and width of a text string. Often, however, the dimensions returned do not match the size of what gets drawn on screen when calling Graphics.DrawString. The code I present here can be inserted into any class which needs to compute the real width of a string (shown by the yellow background above). |
|
| Chart a Course With ASP.NET Graphics |
| Visual Studio Magazine |
| M any Web applications that facilitate data analysis require support for charts and other graphics. After all, a picture is worth a thousand words. Traditional ASP did not support these capabilities, so you had to rely on third-party components or Java applets to get the job done. With ASP.NET, you can leverage the graphics classes in the .NET Framework, opening the door for you to create rich, dynamic charts. |
|
| Common .NET Libraries for Developers |
| MSDN |
| Identifies and defines many of common namespaces that you will use when developing .NET applications, and provides examples of the most common classes and methods in those namespaces. |
|
| Developing Compelling User Controls that Target Forms in the .NET Framework |
| MSDN |
| In the beginning, writing controls meant dealing with Windows messages. Then came Visual Basic controls, which introduced methods, properties, and events. Later, ActiveX controls, which ran atop COM, became popular. While each innovation in control writing brought more flexibility, nothing has matched the versatility of the new .NET Windows Forms controls and Web Forms controls. This article, the first of a two-part series, introduces the reader to Windows Forms, beginning with their inheritance from one of the .NET CLR base classes, which makes control creation much faster than before. Control programming is illustrated through the development of a login control. |
|
| Documents Do Matter: Serve Them Nicely and Effectively with Avalon Document Services |
| MSDN |
| Provides an overview of document services available in Avalon. In particular, it focuses on the PageViewer control. The new managed API for compound files is also presented with practical code samples. |
|
| 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. |
|
| Height of Text |
| The Code Project |
| This function will return the height of text. Designed for use with text boxes on windows forms. |
|
| 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. |
|
| How to Use a GDI+ Application in NetCOBOL for .NET |
| DotNetJunkies |
| In this how to, we'll explore how to develop a GDI+ (Graphics Device Interface) application using System.Drawing and NetCOBOL for .NET. |
|
| Introduction to GDI+ |
| GotDotNet |
| GotDotNet's introduction to GDI+. Extract: "The common language runtime takes advantage of an advanced version of the Windows graphics device interface (GDI) called GDI+. GDI+ is designed to provide high performance and ease of use. It supports 2-D graphics, typography, and imaging. " |
|
| Mandelbrot set in MSIL |
| The Code Project |
| To really be able to program .Net, a good programmer will find themselves using ILDASM, the MSIL disassembler, on a regular basis. This necessitates an ability to, at a minimum, be competent at reading MSIL. Unfortunately, the best way to learn to read MSIL is to spend some time writing it! Thus, I set about thinking of something I could write, which would not be too large, but would cover enough of the concepts to give me an ability to read MSIL. |
|
| Refactoring C# Code Using Visual Studio 2005 |
| MSDN |
| This article examines the role of code refactoring, and the refactoring techniques supported by Visual Studio .NET 2005. |
|
| Sprite manipulation in C# |
| The Code Project |
| Basic sprite animation, clipping, z-ordering in C# using GDI+. |
|