Using Brushes

You use a brush to fill the interior of shapes and paths. For instance, to create a red rectangle, see the following example. g.FillRectangle(new SolidBrush(Color.Red), 600, 350, 100, 100) Brushes can either be solid, hatched, textured, or gradiated. A hatched brush is simply a brush that paints using a pattern. HatchBrush hb new HatchBrush(HatchStyle.ForwardDiagonal, Color.Green, Color.FromArgb(100, Color.Yellow)) g.FillEllipse(hb, 250, 10, 100, 100) A textured brush uses a bitmap to paint....

Introduction Creating Controls

What is Windows Forms Writing a Hello World Form Windows Forms Application Model Dynamic Layout in Windows Forms Adding Menus to a Form Writing MDI Applications Data Access Overview Web Services Overview Databinding in Windows Forms Using ActiveX Controls Controls in Internet Explorer Working with Graphics Working with Printing Creating Controls Accessibility Localization This topic demonstrates how you can create Windows Forms controls. It covers the basics of creating a control. In addition,...

Control Reference

This section introduces ASP.NET Web Services. For more information on creating exposing Web Services, see the ASP.NET Quick Start. For more information on using Web Services with Windows Forms see the Windows Forms and Data Access Quick Start. The Internet is quickly evolving from today's Web sites that just deliver user interface pages to browsers to a next generation of programmable Web sites that directly link organizations, applications, services, and devices with one another. These...

Writing a Hello World Form

What is Windows Forms Writing a Hello World Form Windows Forms Application Model Dynamic Layout in Windows Forms Adding Menus to a Form Writing MDI Applications Data Access Overview Web Services Overview Databinding in Windows Forms Using ActiveX Controls Controls in Internet Explorer Working with Graphics Working with Printing Creating Controls Accessibility Localization Getting started with Windows Forms is very simple. The following example displays a top level window called a form and sets...