Now this is my first time posting a question, if I do end up making it too general please let me know.
OK, now, I am in the process of programming a small program capable of accessing a sql database. That is no problem. Now, I have decided to look into the use of the combo box tool to avoid having different text boxes for the user to type in what he/she wishes to search for (for example, First name, last name, by nationality, etc) Now, the current method I am using is to set up an if condition (without entering into much detail, as it actually works, it checks if the option equals a certain index of the values entered, so if the selected index is 1, then it will execute the function associated with that index, such as search by name)
Now, the thing is, my classes are in French, and sadly the french forums I have found leave a lot to be desired (they always say search google, makes you wonder if they even read what is being posted), and documentation in french is well not much of a documentation at all.
Anyway, when I look at my code, well, it works, but I have the impression that there has to be a much less convoluted way to program a combo box. Do you have any suggestions of functions or methods I can look up? This is the first time I do such an assignment, and as such I think I am not doing a proper search due to lack of knowledge as to which keywords to search for.