Demonstration Application: FormPaint.exe
This application puts together many of the principals we've shown you in this book and shows off some of the features of Windows Forms in a complete application context.
Form Paint is a Multiple Document Interface (MDI) application that allows you to paint images with brushes and shapes. It has customized menus and shows off some of the power of GDI+ also.
Part 1: The Basic Framework
Getting started, create an application in VS.NET and immediately set the forms IsMDIContainer to true. This makes it a main parent window for other form-based documents that are hosted in it.
The name, Form1, must be changed to MainForm and the title of the window changed to FormPaint. Remember that when the name of the
Get C# and the .NET Framework: The C++ Perspective now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.