By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,163 Members | 1,282 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,163 IT Pros & Developers. It's quick & easy.

ListView with background image.

P: n/a
I have now googled for a couple of hours with no success. I am looking to
find code to create a listview with a background image. I know it can be
done but cannot find a link to code or a hint.

Lloyd Sheen
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> schrieb:
I have now googled for a couple of hours with no success. I am looking to
find code to create a listview with a background image. I know it can be
done but cannot find a link to code or a hint.


Adding a background image to a listview control
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=listviewbackgroundimage&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
Thanks that works great. One more question if you don't mind. As soon as I
add listviewitems I attempt to set the backcolor to color.transparent but
the items obsure the background image. Is there a way to change this
behaviour?

Lloyd Sheen

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Oe**************@tk2msftngp13.phx.gbl...
"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> schrieb:
I have now googled for a couple of hours with no success. I am looking to
find code to create a listview with a background image. I know it can be
done but cannot find a link to code or a hint.


Adding a background image to a listview control
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=listviewbackgroundimage&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
I got it although I was not looking for that answer.

Put this code into a Sub Main and magically the listview will show the
background image and the listview items show only t he text.

Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New Form1)
Thanks for the help and the direction.

Lloyd Sheen

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Oe**************@tk2msftngp13.phx.gbl...
"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> schrieb:
I have now googled for a couple of hours with no success. I am looking to
find code to create a listview with a background image. I know it can be
done but cannot find a link to code or a hint.


Adding a background image to a listview control
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=listviewbackgroundimage&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.