|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ListView with background image.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 "Lloyd Sheen" <sqlguyremoveallofthis@tostopspamhotmail.com> schrieb: Adding a background image to a listview control>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. <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/> 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/> 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/> |
|||||||||||||||||||||||