开发环境是win7,实施环境是xp

解决方案 »

  1.   

    我已经确认过,肯定是执行了。但是,我在Form_load()里面有一个
    while (true)
    {/*其他执行*/;
    Thread.Sleep(100);},Thread.是不是影响showDialog().
      

  2.   

    private void Form1_Load(object sender, EventArgs e)
            {
    YjInOutThread = new Thread(YjInAndOut);
                YjInOutThread.Start();
    }
    private void YjInAndOut()
            {
                try
                {
                       /*其他执行*/
                        Thread.Sleep(100);
                    }
                }
                catch (System.Threading.ThreadInterruptedException)
                {
                }
            }
      

  3.   

    private void Button1_Click(object sender, EventArgs e)
            {
    openFileDialog1.Filter = "txt|*txt";
                if (openFileDialog1.ShowDialog() == DialogResult.OK)
                {
    }
    }
      

  4.   

    怎样解决呢,出现同样问题
    OpenFileDialog.ShowDialog()无法显示
      

  5.   

    我这也出现过。。用的.NET 2.0。。装上SP2就好了。