Lab 4 – Due 1116

Document Sample
Lab 4 – Due 1116 Powered By Docstoc
					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.

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:8
posted:2/2/2010
language:English
pages:1