Thursday, May 21, 2009
Week 13
On our Tuesday class this week we had a Chapter 6 test. It contained Multiple Choice questions, True or False questions and complete the sentence questions, and was all open book. I scored 100%.
Thursday, May 7, 2009
Week 11
This week I completed work on the alarm clock assignment. This week I learnt was how to open a document from the program by using this piece of code:
System.Diagnostics.Process.Start(Application.StartupPath & "\HELP.pdf")
Also I initially had trouble getting the program to add five minutes to the set alarm time when the snooze button was pressed. I acomplished this by declaring my stored alarm time as a date and then using AddMinutes to add five minutes:
Dim dtOrigTime As Date = strAlarmTime
strAlarmTime = dtOrigTime.AddMinutes(+5).ToString("HH:mm:ss")
System.Diagnostics.Process.Start(Application.StartupPath & "\HELP.pdf")
Also I initially had trouble getting the program to add five minutes to the set alarm time when the snooze button was pressed. I acomplished this by declaring my stored alarm time as a date and then using AddMinutes to add five minutes:
Dim dtOrigTime As Date = strAlarmTime
strAlarmTime = dtOrigTime.AddMinutes(+5).ToString("HH:mm:ss")
Subscribe to:
Posts (Atom)