473,287 Members | 1,709 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,287 software developers and data experts.

listview color

ListView1.ListItems(x).ForeColor seems to only change the forecolor of the
FIRST column text. I have a listview where the first column is not visible
so I would like to be able to change the text color of the second column.

Could anyone offer some suggestions?

Thanks!!!
Jul 14 '06 #1
6 11199

"Raoul Watson" <Wa*****@IntelligenCIA.comwrote in message
news:XJBtg.7268$wZ.1856@trndny01...
ListView1.ListItems(x).ForeColor seems to only change the forecolor of the
FIRST column text. I have a listview where the first column is not visible
so I would like to be able to change the text color of the second column.

Could anyone offer some suggestions?
ListView1.ListItems.Item(x).ListSubItems(1).ForeCo lor = vbRed
Jul 14 '06 #2

"Steve Gerrard" <my********@comcast.netwrote in message
news:la******************************@comcast.com. ..
>
"Raoul Watson" <Wa*****@IntelligenCIA.comwrote in message
news:XJBtg.7268$wZ.1856@trndny01...
ListView1.ListItems(x).ForeColor seems to only change the forecolor of
the
FIRST column text. I have a listview where the first column is not
visible
so I would like to be able to change the text color of the second
column.

Could anyone offer some suggestions?

ListView1.ListItems.Item(x).ListSubItems(1).ForeCo lor = vbRed

Wow.. I have never seen that before.. Thanks Steve!!
Jul 14 '06 #3
That is a new one on me too, I will have to try that sometime

"Raoul Watson" <Wa*****@IntelligenCIA.comwrote in message
news:RFItg.7327$wZ.1427@trndny01...
>
"Steve Gerrard" <my********@comcast.netwrote in message
news:la******************************@comcast.com. ..
>>
"Raoul Watson" <Wa*****@IntelligenCIA.comwrote in message
news:XJBtg.7268$wZ.1856@trndny01...
ListView1.ListItems(x).ForeColor seems to only change the forecolor of
the
FIRST column text. I have a listview where the first column is not
visible
so I would like to be able to change the text color of the second
column.
>
Could anyone offer some suggestions?

ListView1.ListItems.Item(x).ListSubItems(1).ForeC olor = vbRed

Wow.. I have never seen that before.. Thanks Steve!!


Jul 14 '06 #4
These methods are for VB6 only. The VB5 control does not have the
listsubitems collection.

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

Please reply to the newsgroups so all can participate.


"Rodney Hanz" <ro********@austin.rr.comwrote in message
news:Cm***************@tornado.texas.rr.com...
That is a new one on me too, I will have to try that sometime

"Raoul Watson" <Wa*****@IntelligenCIA.comwrote in message
news:RFItg.7327$wZ.1427@trndny01...
>
"Steve Gerrard" <my********@comcast.netwrote in message
news:la******************************@comcast.com. ..
>>
"Raoul Watson" <Wa*****@IntelligenCIA.comwrote in message
news:XJBtg.7268$wZ.1856@trndny01...
ListView1.ListItems(x).ForeColor seems to only change the forecolor of
the
FIRST column text. I have a listview where the first column is not
visible
so I would like to be able to change the text color of the second
column.
>
Could anyone offer some suggestions?

ListView1.ListItems.Item(x).ListSubItems(1).ForeC olor = vbRed

Wow.. I have never seen that before.. Thanks Steve!!


Jul 15 '06 #5

"Randy Birch" <rg************@mvps.orgwrote in message
news:44*********************@news.astraweb.com...
These methods are for VB6 only. The VB5 control does not have the
listsubitems collection.
Party pooper. :)


Jul 15 '06 #6
Randy Birch wrote:
These methods are for VB6 only. The VB5 control does not have the
listsubitems collection.
Although you can do custom drawing but it requires a lot more effort.
We use the VB5 versions for XP styles.

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
Jul 17 '06 #7

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

Similar topics

6
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
15
by: Wiktor Zychla | last post by:
today we've found a critical issue regarding the ListView from Windows.Forms. it was confirmed on several machines with Win2K and XP. here's the problem: create a ListView with about 50000 rows....
1
by: newbie | last post by:
Hello, I maybe asking too much in a single posting, but here it goes: I building a windows form that mimic's the Outlook XP GUI. Its a three pane form that will allow a user to view and edit...
7
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
1
by: Cyrille Giquello | last post by:
the code is the one at page http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=96378&Page=1#96674 Hello from example from web i did a little code to avoiding columnHeader resize....
3
by: MikeY | last post by:
Hopefully someone can help me on this. I am using C#, making Windows forms. I have created a listView with checkbox's. I have enabled the checkboxes under the properties, and all the data,...
9
by: Devron Blatchford | last post by:
Hi there, Just wondering if I change the back and fore colour of a listview item when the mouse hovers over it? I want to overide the default windows colour. Can someone please tell me how to...
7
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
12
by: Dennis | last post by:
I have a form which has a ListView control named ListView1 added at design time. When I add items using the following code, they don't appear in the list view. However, if I create a ListView...
2
by: Ben H | last post by:
Hello all I'm using a listview in my app but I want to scroll the listview programatically as I hate the look of the standard scrollbar. So, the listview is scrolled programatically using...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.