How To: Make Listbox Transparent

G

Guest

Hello all,

Is it possible to make a Listbox background transparent like with Combo
boxes?

I have a really nice background on my form that I want to be visible so that
only text in the Listbox is visible. My Listbox is so big it covers much of
the background and only allows me to change background colors. This really
sucks :-(

I was thinking maybe using a Combo box and have it mimick a Listbox, but I
don't know enough about VB to achieve this.

Anyone out there know how to code something like this with VB?

-A
 
D

Douglas J Steele

The only reason I can think of that you couldn't just use a combo box would
be if you want to support multiselect, and there's no way to program a combo
box for that.
 
G

Guest

A compromise may be to make the height of the list box = 0 then use a command
button or some other technigue to expand the height when you want to use the
list box.
 
G

Guest

Guys,

Looks like I'm pretty much stuck with what I have. I absolutely need to
have the multiselect option which the Listbox provides. My users need to be
able to select many items at any given time so a Combo won't do. I appreciate
your comments and suggestions though.

Klatuu, I don't know if your method would work unless I actually test it
out. Unfortunately I don't code very well so a coded example would be most
helpful. I tried making the Listbox length equal zero but when I switched
views and went into design view my Listbox was gone. Good thing I didn't
save any changes or I would have been screwed :)

-A
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top