473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
Nov 21 '05 #1
3 3207
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gacu | last post by:
Hi, Is it possible to set ListView background image ? Thanx
3
by: Vagabond Software | last post by:
I'm trying to display thumbnail images in a Listview that look more like the Windows thumbnail view. Everything is working pretty good, but my thumbnails are decidedly not like the Windows...
4
by: Sander R | last post by:
Hi, All. I have problems with a listview control. Hopefully, I am at the right usergroup, otherwise, I apologize. Now, I'm finishing off a project where the main interface is a tree view an...
1
by: Teemu | last post by:
I have problems with ListView-control because of its GridLines bug in Windows XP. I created a function that creates a bitmap which presents those grid lines. Then I set this image to ListView's...
2
by: Padu | last post by:
I'm looking for a component to make listviews (perhaps grid). I have two requirements for the component for two different situations I want to use it. In the first situation, I need a listview...
4
by: firefox | last post by:
Hola Foro!, tengo una rutina que permite agregar varios elementos o items de una sola vez en un ListView. Lo que sucede es que en el momento que se añaden los items al ListView se pone todo blanco,...
5
by: Todd Barlow | last post by:
Hi, When I try to set the BackgroundImage property on a ListView, the project fails to run. Sometimes a generic error message appears telling me that memory might be corrupt. Sometimes the error...
0
by: svx | last post by:
Hello, I am painting individual rows in a ListView control with different colors, depending on state. I am also using a SmallImageList in Detail view. When I set the...
8
by: Lord Zoltar | last post by:
Hi, I've got a list view that displays a series of images. I'd like to be able to draw a divider across the list view to divide the images into groups. Ideally, I'd have a group name, with a line...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.