473,566 Members | 3,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem removing Icon from ListView ColumnHeader on WindowsVista

Hi,

I have added a soring icon to a ListView column header when the user
clicks on it. I want to remove this icon, when the user clicks on
another column by setting the image index to -1. That works perfect on
Windows XP but not on Vista. Is there a solution?

Thanks
Nov 18 '08 #1
1 2652
"Andi" <an************ ***@skillworks. dewrote in message
news:53******** *************** ***********@u29 g2000pro.google groups.com...
I have added a soring icon to a ListView column header when the user
clicks on it. I want to remove this icon, when the user clicks on
another column by setting the image index to -1. That works perfect on
Windows XP but not on Vista. Is there a solution?
If you don't get an answer here, try asking in
microsoft.publi c.dotnet.framew ork.windowsform s.controls.
Nov 18 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9571
by: VR | last post by:
I have a form with a list view control, a button control and a main menu with menuDelete item. Any time I am handling a button click event or menuDelete click event I call DeleteItem() function which removes the selected item from the list. If I right-click on my list, I clone menuDelete item and display a pop-up menu. So, if user selects...
0
2188
by: John T | last post by:
I have the code I need to show a sort icon in the column header of a ListView control. The issue I have is that the image is always on the right side of the column header text. This isn't normally an issue - unless the column happens to be right-aligned. When the column's TextAlign property is set to HorizontalAlignment.Right, the...
0
1764
by: Jean Bredeche | last post by:
Hi: My application creates multiple forms, all of which appear in the taskbar. Because I have my Windows XP configured to "Group similar taskbar buttons", the multiple forms get put into the same group on the taskbar. Two problems I am running into: 1) the icon - each form's icon is correct, but when stacked in a group,
0
933
by: Meelis Lilbok | last post by:
Hi Is it possible to set listview's columnheader background image? No luck with drawcolumnheader :( Best regards; Meelis
11
1380
by: rb | last post by:
Hi All, Is there a property or method to keep the headercolumns from being resized by the user for a listview? I am using Visual Basic in Visual Studio . net 2005 Thank you.
0
1139
by: Vyz | last post by:
I have given icon like this to main frame of my program ib=wx.IconBundle() ib.AddIconFromFile("SriPadma.ico",wx.BITMAP_TYPE_ANY) self.SetIcons(ib and then I have made binary with py2exe and in setup file mentioned it as icon resource. windows = }
0
1027
by: lukgol3 | last post by:
Hello. I have a problem with class ListView. I want to create control based on my class 'LisCtrl' This is how I create my class: #pragma once public ref class ListCtrl :public System::Windows::Forms::ListView
1
2841
by: Johnny Jörgensen | last post by:
Does anybody know if it's possible to insert CheckBoxes into ListView ColumnHeaders? I want the user to be able to select or deselct certain columns that way (if possible). Cheers, Johnny J.
0
1053
by: shapper | last post by:
Hello, I created a ListView with a DataPager associated with it. The ListView renders as a table but I suppose it is irrelevant for the problem I describe here. I moved the ListView to a page, let's say 10. Then I deleted all elements of this page.
0
7673
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...
0
7893
Oralloy
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. ...
0
8109
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...
1
7645
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...
0
7953
tracyyun
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...
0
6263
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...
0
3643
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...
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
926
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...

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.