Home All Groups Group Topic Archive Search About

ListView with background image.

Author
2 Apr 2005 7:32 PM
Lloyd Sheen
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

Author
2 Apr 2005 8:22 PM
Herfried K. Wagner [MVP]
"Lloyd Sheen" <sqlguyremoveallofthis@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/>
Author
2 Apr 2005 9:11 PM
Lloyd Sheen
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

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:OeEekF8NFHA.1096@tk2msftngp13.phx.gbl...
> "Lloyd Sheen" <sqlguyremoveallofthis@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/>
Author
2 Apr 2005 10:59 PM
Lloyd Sheen
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

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:OeEekF8NFHA.1096@tk2msftngp13.phx.gbl...
> "Lloyd Sheen" <sqlguyremoveallofthis@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/>