How To Create A Sliding Panel Using VB.NET

0
248

Sliding Panel Using Vb.Net is one great view or design to be used in your system. This Sliding Panel Using Vb.Net is one way of showing some animations to your system.With this, you can have some effects on your system. In this tutorial I will teach you how to make an effective sliding panel now let’s get started;

 

  • First is open the Visual Basic, Select File on the menu, then click New and create a new project.

  • Then a New Project Dialog will appear. You can rename your project, depending on what you like to name it. After that click OK

  • Then design your form like this just like what I’ve shown you below

Select a Panel, label, and Button. You can choose whatever Background Color of your Panel that suits your taste. Then change the text of label and the button according to the design I’ve shown you below.

 

After designing your form. Slide down the Panel then Right click and hit the Bring to Front and add another Label & Button. Follow the design I’ve shown you below.

And it will look like this one

 

  • After that Slide up the Panel and click the Slide down Button and add this following codes.
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. Label2.Hide()
  3. While (Panel1.Height < 420)
  4. Panel1.Height += 1
  5. End While
  6. Label2.Show()
  7. End Sub
  • Then Slide down the Panel add this another code to the other button.
  1. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  2. Label1.Hide()
  3. While (Panel1.Height > 75)
  4. Panel1.Height -= 1
  5. End While
  6. Label1.Show()
  7. End Sub
  8. End Class
  • Finally, click F5 to run the Program.

Output

If you have any questions or suggestions about Sliding Panel Using Vb.Net please contact me through our contact page.

Download Sliding Panel Using Vb.Net Source code Here

 

 

Readers might read also:

 

 

Facebook Comments
(Visited 291 times, 2 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here