Zebra0.com

csharp richtext

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.

End of lesson, Next lesson: That is the last C# lesson in this course.