Visual Basic 6.0 - How to create a Slide Menu  Hot PDF Print E-mail
Tag it:
Delicious
Furl it!
Digg
NewsVine
Reddit
YahooMyWeb
Technorati
Articles Reviews Visual Basic
Written by John D. Conway   
Thursday, 15 March 2007

{mos_sb_discuss:39}

This article shows how to save space by creating a Slide Menu.
How to create a Slide Menu
Ready - Set - Scroll.



You'll need:
1 Form named: Form1
2 Frames named: Frame1 and Frame2
1 PictureBox named: Picture1
1 VScroll named: VScroll1
15 TextBox(s) named: Text1, Text2, Text3, Text4 and so on.


Step 1

Open Visual Basic and choose: Standard EXE. We should have a form in front of us named Form1. Stretch the form to the right. Place a Frame on the form1 and resize the frame so it resembles the image below.

Step 2

Place a PictureBox onto Frame1 so that it's inside of the Frame. If in doubt - Try to move the PictureBox out of the Frame. If it will not allow you to move outside the Frame then I say we're in business. If it does move out of the Frame - just right click on the PictureBox and Cut - left click the Frame and then paste the PictureBox onto the Frame. You should have something that looks like the image below.
Let's say we Scroll to the next step.

Step 3

Go to your toolbox and just start clicking away until you have 15 textbox(s). Now would be a good time to stretch Frame1 and Picture1. Place the TextBox(s) to resemble the image below. When you have them placed - Hold down the shift key and left click each textbox. When you have all the TextBox(s) selected - right click and Cut - Now left click the PictureBox and Paste the TextBox(s) This will place the TextBox(s) in the PictureBox.

Steps 4 and 5

Now it's time to add the second Frame and a VScroll. Go to the ToolBox and Double Click on the Frame Control and Vscroll. You should now see one of each in the center of your form. Stretch the Frame (Frame2) to cover (Frame1, PictureBox1 and TextBox(s)) and move VScroll1 to the right of your form. Refer to the image below. Now - Right click on Frame2 and choose Send to Back.

Read more
 


User reviews

There are no user reviews for this item.

Add new review




Powered by jReviews

Last Updated ( Thursday, 07 June 2007 )
 
< Prev   Next >