Lab 4 – Due 1116 by derong123

VIEWS: 8 PAGES: 1

									Lab 4 – Due 11/16

Purpose: First introduction to Windows Forms

Convert lab1 (Mortgage calculator) to Windows Forms.

The following routine will assist in data validation:

     private void textBox_KeyPress(object sender, KeyPressEventArgs e)
     {
        char c = e.KeyChar;
        if (!char.IsDigit(e.KeyChar))
        {
            e.Handled = true;
        }
     }

To convert to dollars and cents, the following format can be used:

        number.ToString("C",Thread.CurrentThread.CurrentCulture)

Note: The screen shot is not included because I want you to create your own GUI instead of
copying mine.

								
To top