- else if (arrMsgReceive[0] == 1)
- {
- SaveFileDialog sfd = new SaveFileDialog();
- MessageBox.Show("123");
- if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
- //MessageBox.Show(" ");
- string saveFilePath = sfd.FileName;
- using(FileStream fs = new FileStream(saveFilePath, FileMode.Create)){
- byte[] arrFile = new byte[length - 1];
- Buffer.BlockCopy(arrMsgReceive, 1, arrFile, 0, length - 1);
- fs.Write(arrFile, 0, arrFile.Length);
- }
- }
- }
复制代码 MessageBox弹出来了,然后,就没有然后了,何解?{:soso_e132:} |