Writing the Code for the CD Cataloger

Now that your forms are complete, it's time to add the code behind them. As you know by now, this involves creating module-level variables as well as code procedures and event procedures.

Writing Code for the Main Window

The interface of the main window is now complete. Follow these steps to add the necessary code behind the interface:

1.
Click the fclsMain.cs [Design] tab to view the main form in the designer.
2.
Click the View Code button in the Solution Explorer to access the form's code.
3.
Add the following using statement just below the other using statements at the top of the class:
using System.Data.OleDb;
4.
Position the cursor just in front of the text static void (toward the bottom of the code ...

Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.