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.
For example:
Listview1.Backg roundImage=MyBi tmap
Listview1.Items (2).Backcolor=C olors.Red
That red background won't be seen. Any ideas how to show that backcolor and
have background image at the same time?
Thanks for your answer,
Teemu 1 2488
"Teemu" <ts*****@hotmai l.com> wrote in message
news:ds******** **@phys-news4.kolumbus. fi... 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.
For example:
Listview1.Backg roundImage=MyBi tmap Listview1.Items (2).Backcolor=C olors.Red
That red background won't be seen. Any ideas how to show that backcolor and have background image at the same time?
Thanks for your answer, Teemu
Yeah, paint the background yourself. Shouldn't be too difficult to
calculate the dimensions, color w/transparency, and calling the
Graphics.DrawRe ctangle, you should be able to do it :)
Mythran This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
by: Lloyd Sheen |
last post by:
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
|
by: Prakash |
last post by:
Hi Friends,
In my application, I have created with listview control with 3 rows
with Green color as row background. By default row 1 is in selected
state. If i want to deselect the row from the listview control by
clicking anywhere above the third row. At that time the deactivation of
the row is applied, but the row background is applied as white. This
could be occured even i rearrange the column of the listview also. How
can i restore...
|
by: rlg |
last post by:
We have C# 2005 multi-threaded app.
A background thread is processing data and periodically updating the
contents of a ListView. Sometimes, the user clicking on a ListView
item will not select the item (in the MouseClick event,
ListView.SelectedItems.Count = 0).
Initially we assumed it was because the background thread was in the
process of updating the ListView. However, breaking on the first line
of the MouseClick event reveals...
|
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.
| |
by: David Gouge |
last post by:
Hi All, appreciate that this is more gdi+ than c# but always seem to get
good answers here, so here goes...
In a nutshell, all i want to do is add a gradient background to a
ListView. I have gotten so far by:
Adding the following to the constructor:
this.SetStyle(ControlStyles.UserPaint, true);
|
by: active |
last post by:
I need to know the ListView height that is required to display all the items
in the ListView. I've reviewed the properties but do not find anything I can
use.
Is there a way to do this?
Thanks
|
by: Bart Steur |
last post by:
Hi,
What's the best way to programmaticly select (click) another listview Item
after removing the selected/focused one.
using VB2005 Express.
Thanks
Bart
|
by: =?Utf-8?B?TWlrZSBDb2xsaW5z?= |
last post by:
I have a listview that when I select an item, it populates a details view. I
want to show the item that was selected in the listview by changing it to
yellow. Trouble is, the selected item does not show as yellow until I've
clicked the same item two times. What am I doing wrong on the selected item
that keeps it from changing to yellow until the item is clicked two times?
Also, I have to set the listviews selectedIndex in the...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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...
|
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
| |
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...
| |