Project #8

Due Tuesday, April 20

Chapter 13, Write a C# program that moves five balls around the screen in a manner similar to the way we animated one ball in class; you should have received an e-mail with the code I did in class. You are to use five threads and start each ball at a randomly selected place on the screen. If the user clicks the mouse on a ball, stop that ball (i.e., suspend the thread). When the user clicks on a stopped ball, start the ball moving again (i.e., resume the thread). Have fun!

 

You are to turn in 1 .cs file.

 

ASP.NET instructions:

0. In Visual Studio.NET, pull down the Tools menu and select Options... In the left panel select double click the Folder named Projects. Then select Web Settings. Finally select the radio button "Frontpage Extensions." Click OK.

1. In Visual Studio.NET, create a new ASP.NET Web application (under the File menu of VS.NET select New -> Project... and make sure to select ASP.NET Web Application).

Set the location to:

http://woody4.cs.uiowa.edu/22C96/<your UNIX login name>/test

 

You will be prompted for your User name (which is the same as your UNIX login name) and a Password (which is the last five digits of your University Number). (If you see "DIVMS" in the box with your user name, please delete the DIVMS.) Click the OK button.

 

After some time (about 45 seconds) you will see files appearing in "Solution Explorer" in VS.NET.

 

(An application is created, consisting of a number of files, including WebForm1.aspx (this is the file containing the web form), Global.asax (the Web application code file), and Web.conf (the configuration file). WebForm1.aspx will be displayed in the Design View window.)

 

Click the OK button.

 

2. Drag a label control onto the form and change the Text property to read: "Hi Jeff, this is <your first name>."

 

3. Compile your "program" in the usual manner. Internet Explorer should come up and display your page.

 

4. Under the File menu of VS.NET, select "Close Solution" - that's all I'd like for you to do for now!