怎样为SpeechSynthesizer朗读文件设置进度条并且显示……
我想实现朗读文档时用进度条显示进度,现在不知怎样去实现这一功能……求各位大神指导…… --------------------编程问答-------------------- 求顶…… --------------------编程问答--------------------private void SpeakProgress(object sender, SpeakProgressEventArgs e)
{
this.textBox1.HideSelection = false;
this.textBox1.Select(e.CharacterPosition, e.CharacterCount);
}
private void button1_Click(object sender, EventArgs e)
{
SpeechSynthesizer speech = new SpeechSynthesizer();
speech.SpeakProgress += SpeakProgress;
speech.SpeakAsync(textBox1.Text);
}
--------------------编程问答-------------------- 我是用它直接读WORD的,不是把文本显示在文本框中………… --------------------编程问答-------------------- 还有我是用进度条,Progressbar……求指导…… --------------------编程问答-------------------- 求各位帮帮忙……
补充:.NET技术 , C#