日期:2014-05-17  浏览次数:20792 次

线程中show 窗口的问题


  while (ServerRun)
            {
                try
                {
                    using (HttpWebResponse response = HttpWeb.HttpWebResponseUtility.CreatePostHttpResponse(url, para2, cookie))
                    {
                        if (response != null && response.StatusCode == HttpStatusCode.OK)
                        {
                            string result = HttpWeb.HttpWebResponseUtility.GetData(response, Encoding.UTF8);
  AlertLib.AlertForm f = new AlertLib.AlertForm();
                                        f.Show(result , "提示", AlertLib.AlertForm.ShowWay.Fade, 300, 200, 200, 3000, 500);
                         
                        }                     
                    }
                }
                catch (System.Exception ex)
                {
                   
                }
                Thread.Sleep(10000);
                Application.DoEvents(); 
              
                //GC.Collect();
            }


现在碰到2个问题 
1. 窗口老是处于 未响应状态
2. show出来的窗口不能处于桌面的最顶端

请问怎么解决