IgnaceMaes / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
2.91k stars 841 forks source link

How to write in a combobox #290

Open Patrice547 opened 10 months ago

Patrice547 commented 10 months ago

Hello to you... I would like to know how to write in a combobox of the MaterialSkin framework? Because standard comboboxes allow us to do so.

StaticCC commented 7 months ago

Do you mean how to add Items into a MaterialSkin ComboBox? The default ComboBox gives you a multiline text prompt. In MaterialSkin, it's in the "Items" property when you click on the ComboBox.

G0dang commented 6 months ago

Right click on the combobox>edit items. Add items here

Resch-Said commented 4 months ago

Hey, I was super frustrated with it too.

Theoretically, there are several ways to get around this. You can create your own user control in which you take the textbox, an icon for the dropdown symbol and when you click on the textbox you can display a listbox underneath. With a timer, this can also be animated. Then you can easily type into the text box or select an item directly from the list box.

Alternatively, you could place an additional button next to the textbox and only open the listbox when you press the button. With a little design it can be convenient.

If in doubt, you could use a ComboBox and then place your text box over the ComboBox.

Personally, I find the first one the best, because it works pretty much like a normal ComboBox and the animation is not cut off on focus as it would be if you put a button next to it.