Zebra0.com

csharp richtextZebra Notes: Open, Save, Save As, and Format with a Rich Text Box

Zebra Notes: Open, Save, Save As, and Format with a Rich Text Box

We want to be able to remind the user to save so we will declare the variables changed and currentFilename.

Write the code to declare the variables:

public partial class Form1 : Form
{
   String currentFileName = "Untitled";
   Boolean changed = false;
   public Form1()
   {
      InitializeComponent();
   }
   ...

Click Save All at this point and run the program to see what we have so far.

That's all! Congratulations on completing all of the lessons in csharp!