Alarm Clock App Description:
I’ve developed a simple alarm clock in visual studio 2010. So far, I have a form with a menu that allows the user to set an alarm and turn it on and off. When the user selects set from the menu, it shows another dialog form (getTime.vb) with a masked Textbox (mskTime) Mask=time(US) and two radio buttons to set either AM or PM (radAM, radPM). When the user enters a time in the textbox and selects the radio button (AM or PM) the value is stored in a label on Form1(lblAlarmTime). Also on form1 is two timers to capture the current time and to advance the time every second and the value is stored in another label (lblTimeOfDay). If lblAlarmTime = lblTimeOfDay, it plays an audio sound (My.Computer.Audio.Play(My.Resources.beep_20.Background).
Here’s what I need help with:
I want to add a menu item so the user can select an alarm sound instead of it already being hard coded in my if statement. I would like there to be 3 sub menus under the “Change” menu item for 3 different options(“Beeping”,”Music”,”Speech”). The “Speech” selection is to be SAPI. I’m new to this and I’m not sure how to go about detecting which sub menu item the user selects and store it in a variable to be used in the Audio.Play of my "if statement".