-
Oct 4th, 2021, 06:48 PM
#1
Thread Starter
Member
Wizard Example Using VB,net
Hello Guys,
I'm hoping that some can point me toward an example of how to create a Wizard in VB.Net. I remember messing around with this many years ago when I was coding in Classic VB and I can't remember how I did it. I want to modify the concept slightly and use it to create a UI with multiple layouts that can be chosen by the user so instead of buttons that step you through a process maybe a drop down that selects the layout. If someone could point me to a piece of example code it will give me something to study and a place to start. Thanks
-
Oct 5th, 2021, 05:41 AM
#2
Re: Wizard Example Using VB,net
Originally Posted by VShaneCurtis
Hello Guys,
I'm hoping that some can point me toward an example of how to create a Wizard in VB.Net. I remember messing around with this many years ago when I was coding in Classic VB and I can't remember how I did it. I want to modify the concept slightly and use it to create a UI with multiple layouts that can be chosen by the user so instead of buttons that step you through a process maybe a drop down that selects the layout. If someone could point me to a piece of example code it will give me something to study and a place to start. Thanks
Niya has created a Wizard Control project here which will give you an idea and perhaps modify it's functionality according to your needs
- kgc
-
Oct 5th, 2021, 05:50 AM
#3
Re: Wizard Example Using VB,net
Originally Posted by VShaneCurtis
Hello Guys,
I'm hoping that some can point me toward an example of how to create a Wizard in VB.Net. I remember messing around with this many years ago when I was coding in Classic VB and I can't remember how I did it. I want to modify the concept slightly and use it to create a UI with multiple layouts that can be chosen by the user so instead of buttons that step you through a process maybe a drop down that selects the layout. If someone could point me to a piece of example code it will give me something to study and a place to start. Thanks
You can do that with a menustrip and several panels. Just put a drop down menu that brings panels to the front
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Oct 5th, 2021, 05:52 AM
#4
Re: Wizard Example Using VB,net
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Oct 5th, 2021, 07:09 PM
#5
Thread Starter
Member
Re: Wizard Example Using VB,net
Thanks for all the help and links to help kick start my thought process. I couldn't remember how to do it. Now I remember the process of using panels as "pages" and the tedious process of moving/hiding them. It was a real pain in Classic VB. Anyway these links will help get me started. Thanks again
-
Oct 5th, 2021, 07:28 PM
#6
Re: Wizard Example Using VB,net
My $0.02: I've used Niya's component that is uploaded in the codebank on commercial projects with success. I highly recommend it.
-
Oct 5th, 2021, 08:17 PM
#7
Re: Wizard Example Using VB,net
Originally Posted by VShaneCurtis
It was a real pain in Classic VB.
You just need some panels stacked up, then assuming you have Panel1, Panel2, Panel3. and you want to bring Panel2 to the front (at run time)…
Code:
Panel2.BringToFront
At design time, you can right click any of your panels and select SendToBack, to navigate between your stacked panels. It’s easy.
EDIT: The important part is to be sure your Panels are all children of the Form. A common mistake is to add the first Panel to the Form, then inadvertently add the next Panel to the first Panel instead of adding it to the Form...
Last edited by .paul.; Oct 5th, 2021 at 08:35 PM.
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Oct 5th, 2021, 08:32 PM
#8
Thread Starter
Member
Re: Wizard Example Using VB,net
Yep, all these ideas are very helpful and I will have a look at the code bank as well. My recounting of the old school classic vb attempt was just me having an "Oh I remember that now" moment I seem to recall it being a bit more tedious and a bit of hair pulling exercise until you got it tuned up and turned into a repeatable process. Come to think of it, docking might also be helpful here too Thanks again
-
Oct 6th, 2021, 07:33 AM
#9
Re: Wizard Example Using VB,net
You can find the Wizard control I made via the link in my signature.
-
Oct 7th, 2021, 03:35 PM
#10
New Member
Re: Wizard Example Using VB,net
You could also create each "page" as a form and host these "pages" in a single container control (i.e. a Panel) one at a time.
-
Oct 7th, 2021, 03:38 PM
#11
Re: Wizard Example Using VB,net
Originally Posted by HardCode.NET
You could also create each "page" as a form and host these "pages" in a single container control (i.e. a Panel) one at a time.
Slightly off topic but WPF actually handles this problem quite naturally since GUI content can be moved around very freely and extremely easily. What you described here is exactly what you would do in a WPF application. The only difference is that you can host the page inside of anything you want effortlessly. You could host the pages in side a ListBox if you so desired.
Last edited by Niya; Oct 7th, 2021 at 03:42 PM.
-
Oct 7th, 2021, 04:53 PM
#12
Thread Starter
Member
Re: Wizard Example Using VB,net
Thanks for that bit of info. I was unaware of this and will do some more digging on this subject.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|