SaveFileDialog sfd = new SaveFileDialog();
sfd.ShowDialog();
sfd.Filter("Wave Files|*.wav");
ss.SetOutPutToWaveFile(sfd.FileName);
ss.Speak(richTextbox.Text);
ss.SetOutputToDefaultAudioDevice();
问问题
50 次
2 回答
3
if (sfd.ShowDialog() == DialogResult.OK){
//user saved it
}
else {
//write code to handle the case when an user does't save , and canceled it
}
于 2015-09-04T13:57:17.853 回答
2
使用来自的返回值sfd.ShowDialog()
:
if (sfd.ShowDialog() == DialogResult.OK)
{
// File was selected
}
else
{
// Cancelled
}
于 2015-09-04T13:57:54.383 回答