Evening, Im having a bit of trouble with a home assignment from a VB class Im taking, and I was hoping someone could give me some hints on how to solve it.
The assignment is to build a small timer application that will alert the user after a certain amount of time has passed. Most of the functions have been easy enough to implement, but the assignment specifies that the user must be able to set the alarm either after X minutes or at a specific time of the day.
The 'in X minutes part' is simple enough as I can just have the user enter the desired delay (say 30 minutes), and use a system.windows.forms.timer object to raise the event when the desired amount of time has passed by. Im doing this currently and its working fine.
The specific time of the day is proving more troublesome. Im trying to use a datetimepicker control to let the user pick the desired time for the alert to go off, but Im not sure how to progress from here. Im assuming I should create a DateTime from the time entered in the datetimepicker, but I dont think I can make my timer object work with the datetime. Should I use some other object to determine when the user selected datetime matches the system time, and display the alert? Or can I somehow make the timer object work with the datetime?
Sorry if Im confusing, Im not fully comfortable working with some of these classes so my descriptions may not be the best.
The assignment is to build a small timer application that will alert the user after a certain amount of time has passed. Most of the functions have been easy enough to implement, but the assignment specifies that the user must be able to set the alarm either after X minutes or at a specific time of the day.
The 'in X minutes part' is simple enough as I can just have the user enter the desired delay (say 30 minutes), and use a system.windows.forms.timer object to raise the event when the desired amount of time has passed by. Im doing this currently and its working fine.
The specific time of the day is proving more troublesome. Im trying to use a datetimepicker control to let the user pick the desired time for the alert to go off, but Im not sure how to progress from here. Im assuming I should create a DateTime from the time entered in the datetimepicker, but I dont think I can make my timer object work with the datetime. Should I use some other object to determine when the user selected datetime matches the system time, and display the alert? Or can I somehow make the timer object work with the datetime?
Sorry if Im confusing, Im not fully comfortable working with some of these classes so my descriptions may not be the best.