Groups | Blog | Home
all groups > dotnet windows forms > april 2005 >

dotnet windows forms : Listview background image


Bob Dankert
4/7/2005 9:52:28 AM
After doing google searches of the web and newsgroup postings, it would seem
as though it would be really easy to add a background image to a listview
using the provided responces everyone seems to give. Each responce is based
off the same thing, using PInvoke and sendmessage with LVM_SETBKIMAGE. I
have tried everyones interpretation of how this is supposed to work using
C#/.Net 1.1/WinXPSP2 and have not been able to get any of these to work.
Can someone provide me with a working example of how to get a background
image on a listview control? Any dotnet language - it doesn't really
matter, as long as it works.

Thanks,

Bob Dankert

Herfried K. Wagner [MVP]
4/7/2005 7:37:44 PM
Bob,

"Bob Dankert" <bob@nospamnvsn-it.com> schrieb:
[quoted text, click to view]

Sample in VB.NET:

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/>
AddThis Social Bookmark Button