Use image boxes.
I'm building an app with VB.NET 2003, Windows Media Player component, and Access DB. I'm using picture boxes as buttons and have build the interface for it. The problem is that I can't set the controls' backcolor to transparent, such as a listbox. How did you guys get around this in your apps? I have some nice Photoshop'd pictures in my app, but it looks like doo doo cause the forms backcolors are hiding it. When I set the backcolor property to Transparent it says it's not valid value. When I set it in the code on form_load it says the same thing when I run it. Should I take a different approach?
Use image boxes.
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
??? How could I use that for a listbox for a playlist? I must be missing your point. Sorry.Originally Posted by frodobaggins
I thought you meant for your buttons.Originally Posted by SonicCobra03
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
I'm not very familiar with VB.net, but in VB6, if you want a transparent listbox, you
need to subclass it and paint the background of the listbox with a picture of the area
behind it.
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
just as in vb6 you have to "sub class" it in vb.net to get the look u want
.net doesnt have a built in way to do this so you have to override all the methods for transparency..
It's the same in most languages, Delphi included (I had to do my own component for CarBox).
GingerPrince
Car changed for TVR Griffith 500, so computer de-installed. Using a Dension 100ix w/60Gb HD unit in the interim.
Carputer Install - http://www.stuffandting.com/carputer/
CarBox Software -- http://www.stuffandting.com/carbox/
I find it easier to just build your list into a "collection". Then build a GUI interface.
Take a picturebox and make an array of imagebox's inside the picturebox.. Use the picture box for scrolling and load an image for each song into the imagebox. Or only load like 20 images and change the value as your scroll. But thats me.. I like building my own controls.
I am writing my app (IgnitionMediaPC) in VB.net and there are a few controls that allow transparent backgrounds. There are API calls that you can do or try this statement in the initialize of the form...
Control.SetStyle(AllowTrransparentBackround, True).
This will not show up in intellisense until the ( is typed.
The way I am doing a listbox type control is using a panel and adding lables to that, allowing scrolling, (overrideing to hide) and use pnl.scrollintoview(lbl) call.
I thought about doing that also, I just thought there might be an easier way. Thanks for the replies.Originally Posted by weaselcoder
![]()
Bookmarks