win7下 在线程里面不弹出,怎么回事
  codeSaveFileDialog sfd1 = new SaveFileDialog();
                    sfd1.Filter = "文本文档(*.txt)|*.txt|文档(*.doc)|*.doc";
                    sfd1.RestoreDirectory = true;
                    if (sfd1.ShowDialog() == DialogResult.OK)
                    {
                        string fileName = sfd1.FileName;
                    }

解决方案 »

  1.   


    public delegate void dlg();
    private void save(){
     codeSaveFileDialog sfd1 = new SaveFileDialog();
                        sfd1.Filter = "文本文档(*.txt)|*.txt|文档(*.doc)|*.doc";
                        sfd1.RestoreDirectory = true;
                        if (sfd1.ShowDialog() == DialogResult.OK)
                        {
                            string fileName = sfd1.FileName;
                        }
    }这样调用save试试:
    Invoke(new dlg(save));