many pages in single form

vikna

Member
Joined
Feb 23, 2010
Messages
6
Programming Experience
Beginner
hi,

can any1 help.....i wants to load many pages in same form which each of the pages contains different messages.example....if i press more in the page no1(form 1) it should load the page no2 at the same form(form 1)....please help
 
There are a few variations on a theme here. Your two primary options would be:

1. Add multiple Panels to a form and then call Hide/Show or BringToFront/SendToBack one Panels as needed to display only the one you want at any particular time.

2. Create each page a a separate UserControl and then create and destroy each control as needed.

The first option is less code but can get a bit hairy if you end up with a lot of Panels and/or a lot of controls in total.
 
Back
Top