Week 3
See Tutorial 3-2 Page 101
1. Uploading to Moodle and saving to a USB drive
2. Clear data eg. txtDayOfWeek.Clear( ), lblDateString.Text = String.Empty
3. Exit buttons eg. Me.Close( )
4. Concatenating Strings eg. Using &
5. Writing long lines that break _
6. Naming our textboxes: txtDayOfWeek, txtMonth, txtDayOfMonth, txtYear
7. Naming our labels: lblDateString
8. Naming our buttons: btnShowDate, btnClear, btnExit
9. Subprocedure for Show Date
Private
Sub btnShowDate_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles btnShowDate.Click
'Concatenate
the input an dbuild the date
string
lblDateString.Text
= txtDayOfWeek.Text & ",
" _
& txtMonth.Text
& " " _
& txtDayOfMonth.Text
& ", " _
& txtYear.Text
End Sub
10. Subprocedure for Clear
Private
Sub btnClear_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
'Clear the
Text Boxes and lblDateString
txtDayOfWeek.Clear()
txtMonth.Clear()
txtDayOfMonth.Clear()
txtYear.Clear()
lblDateString.Text
= String.Empty
End Sub
11. Subprocedure for Exit
Private
Sub btnExit_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
'End the
application by closing the form
Me.Close()
End Sub
12. Using Focus
Private
Sub btnClear_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
'Clear the
Text Boxes and lblDateString
txtDayOfWeek.Clear()
txtMonth.Clear()
txtDayOfMonth.Clear()
txtYear.Clear()
lblDateString.Text
= ""
'Return the
focus to txtDayOfWeek
txtDayOfWeek.Focus()
End Sub
================================================
Learning to use WinZip, WinRar, 7zip
WinZip Download site:
http://www.winzip.com/downwz.htm
To zip files -trial version expire during this
semester or next semester
WinRar 3.71 Download site:
http://www.rarlab.com/download.htm
To zip files -trial version might expire during
this semester or next semester
7 Zip Download Site:
To zip files - free open source software
Additional help with zip programs:
See Tutorial 3-9 Page 151
Salary Calculation application with exception handling
See Tutorial 3-10
Beginning the Room Charge Calculator application
Page 153 - 163