如何在VB.NET中关闭\ n隐藏表单 [英] How do I close\hide the form in VB.NET
本文介绍了如何在VB.NET中关闭\ n隐藏表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
' Show any form and hide this ->
End Sub
End Class
我的尝试:
如何在启动任何表单启动时隐藏表单调用者
What I have tried:
how to i hide a "form caller " on the launch of any "form launched"
推荐答案
调用Hide方法: Control.Hide方法(System.Windows.Forms) [ ^ ]
如果您使用Show显示新表单,则处理它已关闭事件重新显示原件。如果您使用ShowDialog,则不需要。
Call the Hide method: Control.Hide Method (System.Windows.Forms)[^]
If you are using Show to display the new form, then handle it's Closed event to re-display the original. If you use ShowDialog, then you don't need to.
这篇关于如何在VB.NET中关闭\ n隐藏表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文