vuol dire che l'applicazione non è bloccata, ma bensì al passaggio del mouse i controlli li posso selezionare, invece con
codice:
Public Class Form1
Dim dlg As New OpenFileDialog
Dim Synt As New SpeechSynthesizer
codice:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If RadioButton1.Checked Then
Synt.SelectVoice("Paola")
Else
Synt.SelectVoice("Roberto")
Synt.SelectVoice("ScanSoft Silvia_Dri40_16kHz")
End If
If RadioButton3.Checked Then Synt.SelectVoice("ScanSoft Silvia_Dri40_16kHz")
Application.DoEvents()
Synt.SpeakAsync(RichTextBox1.Text)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Synt.SpeakAsyncCancelAll()
End Sub
End Class
non si ferma il parlato