473,769 Members | 6,653 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3233
"Lloyd Sheen" <sq************ *******@tostops pamhotmail.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=listviewbac kgroundimage&la ng=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.transpare nt 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******** ******@tk2msftn gp13.phx.gbl...
"Lloyd Sheen" <sq************ *******@tostops pamhotmail.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=listviewbac kgroundimage&la ng=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.Ena bleVisualStyles ()
Application.DoE vents()
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******** ******@tk2msftn gp13.phx.gbl...
"Lloyd Sheen" <sq************ *******@tostops pamhotmail.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=listviewbac kgroundimage&la ng=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
3072
by: Gacu | last post by:
Hi, Is it possible to set ListView background image ? Thanx
3
11401
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 thumbnails. View the following snapshot to compare the Windows thumbnails (top) to my ListView thumbnails (bottom): http://home.san.rr.com/vagabondia/images/tmp/sample.gif It looks like the Windows thumbnails retain their proportion by, perhaps,
4
5063
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 two listviews. I would really like to complete my design with a background image on the main listview, but I cannot get it to work. I have been checking out some samples and tutorials, but they all
1
2488
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 BackgroundImage. The grid line bug is fixed now but this creates an another problem. While having a background image, list view won't show list item's backcolor if it's set.
2
2211
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 that either allow to have an image on the background or a gradient background. The second application is to have a listview in "detail" mode or a grid (it will be read-only, therefore I'm not sure if I need a grid component). The only thing extra...
4
3860
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, cuando se terminan de agregar los items vuelve a su estado normal. Como impido que esto suceda ?. Gracias Mil.
5
1669
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 message does not appear but the project still does not run. When I reset the property to that there is no background image, the projects runs. There is one form in the project. The ListView is the only control on
0
2009
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 SmallImageList.TransparentColor to the correct color, the background color of the image becomes the BackColor of the ListView control itself, instead of the row (ListViewItem) color, which I want. Even within the column containing the image, the rest of the column is...
8
5781
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 underneath it that spans the ListView. How could this be done? I tried using an image as the divider, but it forced the divider image to be the same size as the image size used for the ImageList that stores the images for the ListView.
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.