Link to home
Get AccessLog in
Avatar of PatternNut
PatternNut

asked on

Multiselect listbox options in VB6 and VBA

Hi Experts,

In converting a project from VBA to VB6, I've encountered a problem.

In VBA, the options for my listbox are:
Liststyle: 1
Multiselect: 0
This gives a listbox with radio button type controls, ie each line in the list can only be selected once (as opposed to the version with tick boxes where you can select many times)

In VB6 the options for my listbox are:
either
Style 0
Multiselect 0
This has the same features, ie you can only select one item at a time, but there are no radio buttons - so it looks a bit strange.  Alternatively, if you set style to 1, you get checkboxes which doesn't make sense with an individual item select.

Is there any way to get VB6 to do the radio buttons for individual item select the way that VBA does?

Thanks in advance,

PatternNut



ASKER CERTIFIED SOLUTION
Avatar of psychakias2
psychakias2

Link to home
membership
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access
Avatar of PatternNut
PatternNut

ASKER

Wow.  That was easy.  Thanks so much, I really appreciate it.

Cheers,

PatternNut