Avatar of jeremyzit
jeremyzit
 asked on

Multiple Select on Drop Down List in VB.net

When I was just about done with the project, they changed there mind and want to be able to select multiple items in the drop down list. Is there an easy way to allow this or do I need to use a List box? I've got 30 drop down list so if I can make an easy change that would be great otherwise, how do you add items to the list box and only show 1 item with scrolling options?
Visual Basic.NET

Avatar of undefined
Last Comment
Craig Wagner

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Craig Wagner

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
jeremyzit

ASKER
Is there a way to make it look like a Drop Down list so that when you select the field it shows 5 items with scrolling like a drop down?
Nasir Razzaq

Craig Wagner

Is there a way to make it look like a Drop Down list so that when you select the field it shows 5 items with scrolling like a drop down?

And allows multiple selection? Not that I know of. You'd probably have to build your own control, which seems like a whole lot more work than changing the UI to accommodate a ListBox.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
jeremyzit

ASKER
CodeCruiser,

Those look like good examples, but my code is in VB not C#. Do you have any examples in VB?

Thanks.
Craig Wagner

It really shouldn't be that hard to convert the code from C# to VB.NET. It doesn't hurt to be familiar with the syntax of both languages and be able to at least read them and figure out what they're doing as a lot of code examples on the internet will be in C#.

Or you could just include the C# code in a separate class library project.