Solved

Removing wizardsteps in vb.net gives the error "Argument out of rabge exception"

Posted on 2009-07-13
3
211 Views
Last Modified: 2013-11-26
I have 6 wizardsteps, represented as 6 buttons in the SideBar (not using Next and Previous buttons)
For some records in the db I do not need wizardstep 5 an 6
If I click on wizardstep 5 or 6 and then move to a record which doesn't need step 5 and 6, I do:
 wizardStep.RemoveAt(6)
 wizardStep.RemoveAt(5)

This gives the crash error "Argument out of range exception".
If I move to wizardstep 4, before moving on to changing record, things goes well
I hav tried all ways of workarounds I feel, with no success
0
Comment
Question by:Joar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:dericstone
ID: 24843428
It's not clear why you want to remove wizard steps. Don't you just want to skip over some?

In any case, I think the wizard steps are indexed with a base zero index. So index 6 might not exist - use indices 0 - 5. You can check this by calling IndexOf on the wizard steps you are interested in skipping.

If I'm not helping here, please post some code.
0
 

Author Comment

by:Joar
ID: 24843657
No, I want to remove the steps, because they are meaningless for some records.
I know about the zero based step index, so in the example above I ment to remove steps 4 and 5...

May be I should use another technique than wizardsteps, for example multiview??
The only thning I want is having some buttons in the left margin.
Clicking on different buttons, I want to display different windows in the right part of the page.

0
 

Accepted Solution

by:
Joar earned 0 total points
ID: 24847659
The MultiView was the answer to my problem
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question