To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Visual Basic 6 and Earlier

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old May 7th, 2006, 09:53 PM   #1
arpan_de
Frenzied Member
 
arpan_de's Avatar
 
Join Date: Oct 05
Location: Mumbai, India
Posts: 1,394
arpan_de is on a distinguished road (10+)
Question Load Menu From 2 Other Menus!

In a web browser project, there are 2 CommandButtons named cmdBack & cmdForward. Each of the 2 CommandButtons also have another CommandButton accompanying them clicking which will render the URLs the user has visited in a menu as & how he navigates from one page to another. These 2 CommandButtons are named cmdBackArrow & cmdForwardArrow. Clicking these 2 CommandButtons will display menus named mnuBackArrow & mnuForwardArrow respectively. The 4 CommandButtons behave in the same way as the IE Back & Forward buttons.

Assume that a user visits www.abcd.com/page1.html. In this page, he clicks a link which takes him to www.abcd.com/page2.html. In page2, he clicks a link which takes him to www.abcd.com/page3.html & finally in page3, he clicks a link which takes him to www.abcd.com/page4.html. When the user is in page4 & he clicks cmdBackArrow, mnuBackArrow will get displayed which will have 3 menu items - page3, page2 & page1 (in that order). If the user clicks the Back button & comes to page3, mnuBackArrow will have 2 menu items - page2 & page1 & mnuForwardArrow will have 1 menu item - page4.

Now I want to load another menu, named mnuURLs, with the menu items of these 2 menus. Suppose the user reloads the browser & goes to page1. Though mnuBackArrow doesn't have any menu items since it has just loaded, I want page1 to be added as a menu item in the menu mnuURLs. This is an exception. After this, mnuURLs should be loaded with the menu items existing in mnuBackArrow & mnuForwardArrow.

So when the user first goes to page1, page1 should be the first item in mnuURLs. Not only this, page1 should also be check marked. When the user then goes to page2, mnuURLs should have 2 menu items - page1 & page2 with page2 being checked, so on & so forth.

Now when the user comes back to page3 from page4 by clicking cmdBack, mnuURLs should show 4 menu items - page1, page2, page3 & page4 with page3 being check marked (since the user is currently in page3).

How do I accomplish this?
__________________


ARPAN

IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
arpan_de is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic 6 and Earlier


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:19 PM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.