There is no one rule. Sometimes it depends on what is best for the design. Of course, there are some recommendations on common sense - you do not want to use 100 switches, and there is no point in having a drop-down list with two or three elements.
Basically, you want to hide as little information as possible. If there are two options, including them in the combo box hides unselected options. OTOH, if you have a lot of radio objects, they take up so much space that you show less than other controls or other data.
As with most user interface questions, you need to answer the question "what makes the program easier to use?" not "what rule should I follow in this case?". Of course, the fact that you asked a question means that you are trying to find out what makes the programs more convenient to use. Think about what you think makes it easier to use the program, and then let a small portion of people use it and get their feedback.
Bryan oakley
source share