Zebra0.com

csharp listbox

We are going to create a program that edits a to-do list. Some features will be very similar to notepad.
Here is a little experiment to see how we want out program to work.

Open Notepad.exe. You will see the app as shown below. Notice that the Text of the form is Untitled - Notepad.

Type something. Then click the X in the top right corner, or select from the menu, File, Exit. Now you will get a message "Do you want to save changes to Untitled."
.

If you select Cancel, the app does not close. If you select Save, the Filter for SaveDialog gives a choice of *.txt or All files. Txt is the default. You will get the same choices if you select save as.

After you have saved a file you will see the name in the Text of the form:

Experiment with Notepad: try saving, closing without saving, selecting New without saving, etc. Become thoroughly familiar with the Messages you get and what is in the menu.

End of lesson, Next lesson: ListBox Manager Part 2: Printing in C#