Click here to Skip to main content
15,663,154 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:

I have created this program which loads a file into a rich textbox and sapi reads it from the richtextbox. Now, everything works as intended but now my goal is to pause / stop the reading using play/pause buttons. I am unable to do this and sapi keeps reading untill it gets done. I dont know where the problem is. I was looking online for some solutions and tried one of them but it dint seem to work.([^]

Here is my code:-

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Me.RichTextBox1.LoadFile("c:\temp\Commands.txt", RichTextBoxStreamType.PlainText)

End sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


    End Sub

 Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click


End Sub

How do i resolve this issue? Please help me out. Thanks
Updated 11-Nov-20 2:27am
[no name] 27-Sep-14 17:04pm    
Did you take care about "AlertBoundary"?
V.AlertBoundary = SVEPhoneme //Let words be interrupted

1 solution

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900