Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# need advice on a simple issue on form navigation

I need to simulate a form that is similar to the interface seen during installation of any software. There are next and back buttons and the all the information entered by the user is processed only when he/she clicks the finish button.
When the user clicks the back button, the previous entered information is showed to him/her.
When the user clicks the next button the next screen is show to him/her. All displayed information is shown in one form.

There are 3 section which I need to show the user.

  • Section 1 - pressing the next button will show section 2
  • Section 2 - pressing the back button will show section 1 and pressing the next button will show section 3
  • Section 3 - pressing the previous button will show section 2 and pressing the finish button will process all the information entered in section 1,2 and 3.

Currently planning to implement the solution listed below :

  1. Create one form
  2. Add all the element for section 1 and create a next button event that will hide all the element shown in section 1 including the button and show all the elements section 2.
  3. Create button event for the back button for section 2 such that it hides all the elements in section 2 including the button and displays all the elements in section 1 and the next button to hide all the element in section 2 including the button and show all the element in section 3
  4. Create similar button event for section 3

Are there any better solution than the one describe above. If yes, please describe the approach. Any help provided will be greatly appreciated.

like image 901
abduls85 Avatar asked Feb 10 '11 13:02

abduls85


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.

What is C in C language?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

Is C language easy?

C is a general-purpose language that most programmers learn before moving on to more complex languages. From Unix and Windows to Tic Tac Toe and Photoshop, several of the most commonly used applications today have been built on C. It is easy to learn because: A simple syntax with only 32 keywords.


1 Answers

One way to achieve this is using a tab control and hiding the tabs so that the user can't navigate between them and instead you control moving from one tab to the next programatically.

I use the KryptonNavigator control as it provides many different modes that make it simple to hide tabs so that only tab content is visible, etc. However, it should be possible to hide the tabs of the standard tab control.

KryptonNavigator

like image 94
Matt F Avatar answered Sep 28 '22 02:09

Matt F