Okay, so I have a database project for my database class. I have a database made in MySQL and am making my application in C#. The database is basically just a parts database, in 4NF consisting of parts, relational tables, build, customer, and order tables as this is for a customer-based computer build database. I have no problems with the way my database is designed or anything but I’m wondering how I should do my GUI for such a thing.
I currently have it setup in tabs and each tab is a part needed in the build but I’m not liking the way it looks. Is there a way that I could have Next and Previous buttons and have a Pane for each part and step through them? I’m somewhat new to C# and am trying to learn. Suggestions?
EDIT: I guess I should make it clear that I’m looking at possibly using Panels and switching through them using Next and Previous buttons opposed to using tabs and iterating through those.
EDIT2: I didn’t figure out a way to do it by changing the view to a new Panel but I figured out how to do it by dynamically adding/removing data.
Here’s what I want – A way to store buttons, labels, and all other Controls needed within a Panel and be able to change the Panel being viewed within a Form…all by the click of a button.
I successfully achieved what I wanted to. I have a class for each layout for each screen for each computer part I need. This class is a subclass of Panel. All of these Panel subclasses take on controls within them (button, textbox, label, etc) and the indices of each Panel are stored within variables in each class. These variables say what “page” you’re viewing and which page comes next/previous with respect to your current location. Then, the main thing I was missing, is the z-order. To change the z-order when doing next/previous buttons, I use the following:
That’s basically it. I haven’t actually implemented what I specifically wanted yet but I’ve done so with a test file and got it to do what I wanted. Thanks everyone for your help!