473,387 Members | 1,578 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,387 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 11208

"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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...

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.