P
P
Pavel Mikhalovsky2018-04-18 00:56:14
.NET
Pavel Mikhalovsky, 2018-04-18 00:56:14

How to create a method in C# that can take both ListBox and ComboBox as an argument?

I have a piece of code that gets a value from a database table, I need to display these values ​​in a listBox and comboBox. I can write this code 2 times for listBox and comboBox separately, but I would like to keep it simple.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question