C# Programming Rules
Syllabus
Submit Homework/View Comments
Homework
Office Hours
Contact Me
Programming Rules
Final Grades
send me an e-mail
|
Added May 7, 2004
-
Final grades, comments, etc. are posted.
If you feel I made a mistake on yours, please let me
know so that I may check it before grades are turned
in either late Monday or Tuesday.
Added April 13, 2004
-
Homework 5 is due on Tuesday May 4, 2004
not Sunday May 2 and Sunday May 6 as originally posted.
Added April 2, 2004
-
Homework 5 is now posted.
Also Added March 30, 2004
-
Office hours for the remainder of spring semester will be:
Wednesday and Friday 10:00 a.m. to noon.
Added March 30, 2004
-
Grades and comments for homework 3 are posted.
-
Office hours for the remainder of the semester will be changed to Wednesday
and Friday mornings.
Check
Office Hours
later today for specific times.
Added March 18, 2004
-
The due date for homework 4 is now Tuesday April 6, 2004.
Hope the extra time helps.
Added March 17, 2004
Added March 9, 2004
-
A clarification on homework 4.
When you create your dialog form with the OK and Cancel buttons,
you need to be careful about one thing.
Setting the form's AcceptButton property to btnOK,
or some other button, will simultaneously
set the DialogResult property for btnOK, or the other button,
to the value DialogResult.OK.
When any button's DialogResult property is set to a value other than the default
None, clicking that button will cause the form to close and the
appropriate Dialog.Result value to be returned by the ShowDialog
method.
If you find that clicking a button on the dialog form is not closing the
dialog form, most likely the problem is that the DialogResult property
for that button has been reset to None.
Change it to the appropriate value and the next time you click the
button, the dialog form should close.
Added March 5, 2004
-
Homework 4 is now posted.
-
Change in Homework Submission Procedure
Because of the Bagle virus attack, you need to change the method you use to submit your homeworks.
The new method is:
-
As before, create a zip file that contains your entire solution.
(All of the files, folders, etc. that are a part of the solution.)
-
Upload the zip file to WebCT, being certain that you place it into the correct folder
for that homework.
-
New Step:
Click the CheckBox next to the name of the zip file you just uploaded.
From the drop down list box at the top of the window, select the action to Unzip
the selected file.
Click the Go button next to the drop down list box.
At the next page, click on the drop down list box.
You should see a display that is similar to the following:
Select the correct homework folder and click the Unzip button.
If all goes well, you will see the files and folders for your solution
reflected in the homework folder on WebCT.
If you do not unzip your folder, I will not do it for you.
This means I will not grade your homework.
Even if you have an infected zip file, no damage should be done as the Bagle virus
infects PCs running Windows.
Since WebCT is a Linux box, it is immune to the Bagle virus.
If, after initially submitting your homework, you wish to submit a revised
homework, do the same thing.
Upload the new zip file and unzip it.
Assuming you have not changed any file or folder names, the original
files and folders will be overwritten during the unzip process.
Added February 26, 2004
-
The due date for homework 3 is changed to
Wednesday March 3, 2004.
-
With respect to the question raised in class, on the Left method for homework 3, the following should apply
based on the value of howmany:
-
If howmany is less than zero, then an ArgumentException should be thrown.
-
If howmany is equal to zero, the method should return the null string "".
-
If howmany is greater than the length of sourcestring, then
sourcestring should be returned.
-
If howmany is some other value, then howmany characters of sourcesting
should be returned by the method, starting with the first character.
Added February 16, 2004
-
Grades and comments for homework 2 are posted.
If you feel there is a problem with your score, please let me know so I can check to make certain
I graded it correctly.
Added Frbruary 9, 2004
Added February 4, 2004
-
I mentioned in class that you could write a procedure to Clear all
TextBoxe that are a part of a form in a manner that would allow you to
avoid having to change the code as TextBoxes are added to/removed from the form
and/or renamed.
Here's the code for a Button Click event to accomplish this.
private void button1_Click(object sender, System.EventArgs e)
{
foreach (Object X in this.Controls) // get each Object on the form
{
// if the Object X is a TextBox
if (X.GetType().ToString() == "System.Windows.Forms.TextBox")
{
TextBox T = (TextBox)X; // convert Object X to a TextBox
T.Clear(); // Clear the TextBox
}
}
}
Added January 28, 2004
-
I forgot when we decided on C# as the programming language to change this page
to point to the C# Programming Rules.
You can find them at C# Programming Rules
or by following the link to the left.
Added January 26, 2004
-
The PowerPoint show third.ppt
is now available.
-
And, IntroCode.txt
has been updated to include the code from this show that can be copied
into DemoProg.cs to execute.
Added January 22, 2004
-
You can download
Second.ppt,
the second PowerPoint slide show we've been going over.
-
And, the file IntroCode.txt,
which contains C# source code ofr all the samples.
It can copied using NotePad and pasted into the DemoProg below
to illustrate what's happening in C#.
Added January 20, 2004
Also Added January 16, 2004
-
A few minor changes were made to the first PowerPoint presentation.
You might want to download the newer version of
intro.ppt.
-
The zip file
DemoProg.zip
contains source code for a simple program that can be used to test out the
C# examples given in the first PowerPoint slide show.
You can download this zip file and expand it into the folder DemoProg.
Load the solution file into Visual Studio.
Then you can paste the sample code in the method btnDoIt_Click
at the indicated point.
-
Download the file
IntroCode.txt.
It contains the C# code from the examples and is probably easier to use as
a source for the code than the actual slides.
Added January 16, 2004
Added January 15, 2004
-
Grades for the first homework are posted to the web.
If you do not see a grade for your grade identifier,
that means you have not done it.
If you do it by midnight January 16, 2004 and
send me an email saying you are in 24070 and have uploaded homework 1,
it will be graded.
If you do not do this by then, a score of zero will be entered for you for homework 1.
Welcome to the M&IS 24080 homepage.
You should check it frequently for announcements relevant to the
course.
|