Windows Develop Bookmark and Share   
 index > Windows Forms General > Design Wizard Form type?
 

Design Wizard Form type?

Hi all,

I have made a template to create a form in wizard style, which has a next and back button.

When the user click next button, the panel (TableLayoutPanel) should display the next page.

This is the nested panel structure.

Form --- parent panel ---- page panel(display individual page)+ button panel (next, back and cancel button)

Currently, I implement it by recreating the parent panel and clear the controls of the form and re-add the panel to the form, this is very slow (very noticable) and the screen also flicker, is there another way to handle this?

Itried double-buffer, no change.

I tried changing the page panel only, this causes the controls layout to be messed up. i.e. the button panel covering the page panel, weird.

I tried to suspend and resume layout of the Form, still flicker.

Regards,

Max

o00oo00o  Monday, November 19, 2007 5:03 AM

Hi, o00oo00o,

Based on my understanding,your Wizard Form is flicking when you change the page, isn't it?

I think you should use TabControl to do this job.

Because when you add/remove the controls dynamically, it is really hard to prevent it from flicking.

You can just add the different controls for differnt stages to different TabPages, and change the TabPage with SelectTab methodwhen clicking a "Next"/"Previous" button.

As the controls in a TabControls are loaded at beginning, you won't get a lot of flicking issues then.

And you may want a TabControl without Tabs, please check this thread for details.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2438456&SiteID=1

More info

http://msdn2.microsoft.com/EN-US/library/system.windows.forms.tabcontrol.selecttab.aspx

Hope this helps,

Regards

Yu Guo â€?MSFT  Friday, November 23, 2007 3:46 AM

Hi, o00oo00o,

Based on my understanding,your Wizard Form is flicking when you change the page, isn't it?

I think you should use TabControl to do this job.

Because when you add/remove the controls dynamically, it is really hard to prevent it from flicking.

You can just add the different controls for differnt stages to different TabPages, and change the TabPage with SelectTab methodwhen clicking a "Next"/"Previous" button.

As the controls in a TabControls are loaded at beginning, you won't get a lot of flicking issues then.

And you may want a TabControl without Tabs, please check this thread for details.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2438456&SiteID=1

More info

http://msdn2.microsoft.com/EN-US/library/system.windows.forms.tabcontrol.selecttab.aspx

Hope this helps,

Regards

Yu Guo â€?MSFT  Friday, November 23, 2007 3:46 AM

You can use google to search for other answers

Custom Search

More Threads

• gradient bug
• How can I make the Enter Key behave like the Tab Key
• Setup SSID programatically
• richtext box scroller position
• Hierarchical grid missing in 2005
• DataGridView: Different Fonts in one Cell to achieve indent Alignment of cell texts
• upload single/multiple xls files to gridview
• running asp.net version 1.1
• Give me some feedback from this "rude" Drag and Drop
• How to detect closing a file opened by a Process?