Drawing on a Form

Page 1 of 2
  1. Introduction
  2. The Code

Introduction

Choose an appropriate name for your Form.  I changed the name Form1, to FDraw.  In the Properties window for your Form, set the BackColor.  I use White for my drawing surface.

Use the Object Browser, to see what methods in your base class can be overridden.  In the View menu, go to Other Windows and select Object Browser.  Look for the OnPaint function in the Form class as shown in the screen shot.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The trouble with programmers is that you can never tell what a programmer is doing until it's too late.” - Seymour Cray