Answered by:
Wizard Control Next Page

Question
-
How do I forward button to next page where you want the Wizard Control ?Monday, May 14, 2012 12:21 PM
Answers
-
Hi,
Here are the examples for how to?
http://www.codeproject.com/Articles/120607/Simple-Wizard-for-WinForms
and
http://weblogs.asp.net/justin_rogers/articles/111146.aspx
If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".
Monday, May 14, 2012 12:29 PM -
I solved the problem.Code:
if (wizardControl1.SelectedPageIndex == 3) { wizardControl1.SelectedPageIndex = 4; } else if (wizardControl1.SelectedPageIndex == 4) { if (txtServerName.Text!="") { if (txtDatabaseName.Text!="" && txtPassword.Text != "" && txtUserName.Text != "") { if (DatabaseConnection(txtServerName.Text, txtDatabaseName.Text, txtUserName.Text, txtPassword.Text) == false) { if (MessageBox.Show("Database bağlantısında bir hata meydana geldi\nYinede devam etmek istiyor musunuz?", "Devam", MessageBoxButtons.YesNo) == DialogResult.Yes) { wizardControl1.SelectedPageIndex = 5; } } } else { MessageBox.Show("Lütfen veritabanı adı,kullanıcı adı ve şifreyi tekrar giriniz."); } } else { wizardControl1.SelectedPageIndex = 5; } }
Computer Engineer
- Marked as answer by Bob Shen Tuesday, May 29, 2012 7:16 AM
Wednesday, May 16, 2012 8:36 AM
All replies
-
Hi,
Here are the examples for how to?
http://www.codeproject.com/Articles/120607/Simple-Wizard-for-WinForms
and
http://weblogs.asp.net/justin_rogers/articles/111146.aspx
If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".
Monday, May 14, 2012 12:29 PM -
I solved the problem.Code:
if (wizardControl1.SelectedPageIndex == 3) { wizardControl1.SelectedPageIndex = 4; } else if (wizardControl1.SelectedPageIndex == 4) { if (txtServerName.Text!="") { if (txtDatabaseName.Text!="" && txtPassword.Text != "" && txtUserName.Text != "") { if (DatabaseConnection(txtServerName.Text, txtDatabaseName.Text, txtUserName.Text, txtPassword.Text) == false) { if (MessageBox.Show("Database bağlantısında bir hata meydana geldi\nYinede devam etmek istiyor musunuz?", "Devam", MessageBoxButtons.YesNo) == DialogResult.Yes) { wizardControl1.SelectedPageIndex = 5; } } } else { MessageBox.Show("Lütfen veritabanı adı,kullanıcı adı ve şifreyi tekrar giriniz."); } } else { wizardControl1.SelectedPageIndex = 5; } }
Computer Engineer
- Marked as answer by Bob Shen Tuesday, May 29, 2012 7:16 AM
Wednesday, May 16, 2012 8:36 AM