Learning By Example: Adding Open and Save to FontPad

Recall FontPad from Chapter 6, “Font, Text, and Printing.” This was our basic text editor to which we then added printing capabilities. We will round out this application by adding basic file I/O. After all, what's a text editor worth if it can't open and save files? By the time we're done, we should have completely replaced (or duplicated, anyway) the functionality of Notepad.

This example extends FontPad with an open and save dialog. Therefore, only the open and save dialogs are discussed here. To run the application, you should download the full source at www.samspublishing.com. After walking through the application, you should be able to extend the example as a test harness in which you ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.