hide仅仅是隐藏,还可以通过show的方法再次显示而dispose则关闭了dialog,释放自愿,
要显示必须new 一个新实例

解决方案 »

  1.   

    hide只是把对话框隐藏起来,还可以用show方法把它显示出来
    dispose是关闭窗口,并且释放所占有的资源,即实例被销毁
      

  2.   

    不过我有时dispose之后,还可以引用dialog里的成员与方法,这是何解?这样做会有什么恶性后果?
      

  3.   

    dispose()           
    Disposes the Dialog and then causes show() to return if it is currently blocked.hide()           
    Hides the Dialog and then causes show() to return if it is currently blocked好象是dispose可以用show()来再显示吧。