显示窗体:

 

 

 

try

            {

                Form loadingform 
= new loading();

                loadingform.StartPosition 
= FormStartPosition.CenterParent;

                loadingform.ShowDialog();

            }

            
catch

            {



            }

 

关闭窗体:

 

Application.OpenForms["loadingform"].Close();

 

 

 

参考

http://msdn.microsoft.com/zh-cn/library/system.windows.forms.application.openforms(VS.80).aspx

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-09
猜你喜欢
  • 2021-10-26
  • 2021-10-03
  • 2022-12-23
  • 2021-09-05
  • 2021-10-13
  • 2021-12-21
  • 2021-09-13
相关资源
相似解决方案