Click here to Skip to main content
16,007,809 members
Home / Discussions / C#
   

C#

 
AnswerRe: SDK Pin
Christian Graus1-Oct-06 17:46
protectorChristian Graus1-Oct-06 17:46 
GeneralRe: SDK Pin
Christian Graus1-Oct-06 18:11
protectorChristian Graus1-Oct-06 18:11 
QuestionEditing Excel Worksheet Cells Pin
StyrofoamSUV1-Oct-06 16:15
StyrofoamSUV1-Oct-06 16:15 
AnswerRe: Editing Excel Worksheet Cells Pin
Coding C#2-Oct-06 0:52
Coding C#2-Oct-06 0:52 
GeneralRe: Editing Excel Worksheet Cells Pin
StyrofoamSUV2-Oct-06 6:59
StyrofoamSUV2-Oct-06 6:59 
QuestionCreating a wizard form Pin
Mark061-Oct-06 12:44
Mark061-Oct-06 12:44 
AnswerRe: Creating a wizard form Pin
Nader Elshehabi1-Oct-06 14:14
Nader Elshehabi1-Oct-06 14:14 
GeneralRe: Creating a wizard form Pin
Alaric_2-Oct-06 5:30
professionalAlaric_2-Oct-06 5:30 
The way that I create Wizards in my applications is to put a "placeholder" panel at the location that I want all of the wizard pages to appear. Then I "supersize" my form so that I can place each of the individual wizard pages (also panels) side by side at the bottom. At run-time, I add the template page and each of the wizard pages to an ArrayList, make them invisible and resize the form back down to the appropriate size. Create your Back, Next, Finish, and Cancel buttons and in each of the click event handlers, I manipulate an index (simple int.)

On a Next click:
if(wizardPageIndex < (WizardPages.Count-1)
{
     wizardPageIndex++;
     btnBack.Enabled = true;
     if(wizardPageIndex == WizardPages.Count-1)
     {
       btnNext.Visible = false;
       btnFinish.Visible = true;
     }
     else
     {
       btnBack.Enabled = true;
       btnBack.Visible = true;
     }
     DisplayWizardPage(wizardPageIndex);
}


...do something similar for the back click. (It's simply reverse logic of the Next click) ...Easiest way to get it done without creating a custom control. I've been planning on making one for a while, but this way has worked well for every application I've needed a Wizard for,so there's been no need to.
GeneralRe: Creating a wizard form Pin
Nader Elshehabi2-Oct-06 12:21
Nader Elshehabi2-Oct-06 12:21 
AnswerRe: Creating a wizard form Pin
LongRange.Shooter3-Oct-06 8:06
LongRange.Shooter3-Oct-06 8:06 
Questiontree view control Pin
lagumaster1-Oct-06 12:37
lagumaster1-Oct-06 12:37 
Questionhow do I extract words from a textbox into a file? Pin
roberto_santinni1-Oct-06 10:07
roberto_santinni1-Oct-06 10:07 
AnswerRe: how do I extract words from a textbox into a file? Pin
Christian Graus1-Oct-06 10:22
protectorChristian Graus1-Oct-06 10:22 
AnswerRe: how do I extract words from a textbox into a file? Pin
LongRange.Shooter3-Oct-06 8:09
LongRange.Shooter3-Oct-06 8:09 
QuestionProblems in Deserialization after decompression Pin
Anindya Chatterjee1-Oct-06 7:59
Anindya Chatterjee1-Oct-06 7:59 
Questionhow to print form with Crystal Reports ? Pin
hdv2121-Oct-06 7:53
hdv2121-Oct-06 7:53 
QuestionPassing information from one form to another Pin
kulile1-Oct-06 7:20
kulile1-Oct-06 7:20 
AnswerRe: Passing information from one form to another Pin
Michael P Butler1-Oct-06 8:45
Michael P Butler1-Oct-06 8:45 
GeneralRe: Passing information from one form to another Pin
kulile1-Oct-06 21:43
kulile1-Oct-06 21:43 
QuestionHandling ALT Key on Controls Pin
Vertyg01-Oct-06 6:14
Vertyg01-Oct-06 6:14 
AnswerRe: Handling ALT Key on Controls Pin
Christian Graus1-Oct-06 9:55
protectorChristian Graus1-Oct-06 9:55 
GeneralRe: Handling ALT Key on Controls Pin
Vertyg01-Oct-06 10:12
Vertyg01-Oct-06 10:12 
GeneralRe: Handling ALT Key on Controls Pin
Christian Graus1-Oct-06 10:19
protectorChristian Graus1-Oct-06 10:19 
AnswerRe: Handling ALT Key on Controls Pin
Nader Elshehabi1-Oct-06 14:17
Nader Elshehabi1-Oct-06 14:17 
AnswerRe: Handling ALT Key on Controls Pin
Andrei Ungureanu1-Oct-06 21:20
Andrei Ungureanu1-Oct-06 21:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.