Step 2 - Declaring the Constants
The next step is to add the code. This code will say the caption of the button and then run a program depending on which button you clicked. Add this code to the general declarations:
Const Notepad = "c:\windows\notepad.exe"
|
Step 3 - The Code
Now add this code under the click event of btnNumbers:
spkSpeak.Speak "You clicked button number " & btnNumbers(Index).Caption
& "."
|
Then next piece of code will speak the text typed in the text box. Add this code to the btnSpeak click event:
spkSpeak.Speak txtText.Text
|
Comments