Hiding and Showing Forms in Visual Basic

When we developing a Windows application using Visual Basic that  application may consist of multiple forms

If you want to  make a form disappear, you can use the  Hide command, such as:

Syntax:


 Me.Hide()  


After you've hidden a form, you'll eventually want to visible a form by using the Show command, such as:

Syntax:


 FormName.Show()  


Example:


 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click  
     Me.Hide()  
     log_add.Show()  
   End Sub  





Hiding and Showing Forms in Visual Basic Hiding and Showing Forms in Visual Basic Reviewed by Unknown on 12:24 AM Rating: 5

No comments:

Powered by Blogger.