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 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.