Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
- Dim SAPI
- SAPI = CreateObject("SAPI.spvoice")
- SAPI.Speak(TextBox1.Text)
- End Sub
- Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
- Dim SAPI
- SAPI = CreateObject("SAPI.spvoice")
- If TextBox2.Text = "bye" Then
- SAPI.Speak("Thanks for watching this YouTube tutorial by SmashApps.")
- End If
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement