472,098 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,098 software developers and data experts.

Listview Highlight

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 do this?

Thanks
Devron
Nov 20 '05 #1
9 2885

Hi Devron,

I think you should do some hit-test yourself to determine the mouse is over
which item.
You can handle your hit-test code in MouseHover event, if you want to
change its color not imediatly.
If you want the item's color change imediatly, you can refer to the
MouseEnter and MouseLeave event.

If you still have any unclear, please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Devron Blatchford" <de****@auspine.com.au>
| Subject: Listview Highlight
| Date: Thu, 9 Oct 2003 10:09:42 +0930
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#E**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 203.108.249.179
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145204
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| 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 do this?
|
| Thanks
| Devron
|
|
|

Nov 20 '05 #2

Hi Devron,

Hit-test means that you calculate the mouse point is over which item by the
mouse's x, y coordinate and the height, width of every item.

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Newsgroups: microsoft.public.dotnet.languages.vb
| From: v-*****@online.microsoft.com (Jeffrey Tan[MSFT])
| Organization: Microsoft
| Date: Thu, 09 Oct 2003 02:42:05 GMT
| Subject: RE: Listview Highlight
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
|
|
| Hi Devron,
|
| I think you should do some hit-test yourself to determine the mouse is
over
| which item.
| You can handle your hit-test code in MouseHover event, if you want to
| change its color not imediatly.
| If you want the item's color change imediatly, you can refer to the
| MouseEnter and MouseLeave event.
|
| If you still have any unclear, please feel free to let me know.
|
| Best regards,
| Jeffrey Tan
| Microsoft Online Partner Support
| Get Secure! - www.microsoft.com/security
| This posting is provided "as is" with no warranties and confers no rights.
|
| --------------------
| | From: "Devron Blatchford" <de****@auspine.com.au>
| | Subject: Listview Highlight
| | Date: Thu, 9 Oct 2003 10:09:42 +0930
| | Lines: 11
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| | Message-ID: <#E**************@TK2MSFTNGP12.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.languages.vb
| | NNTP-Posting-Host: 203.108.249.179
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145204
| | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| |
| | 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 do this?
| |
| | Thanks
| | Devron
| |
| |
| |
|

Nov 20 '05 #3
Ok, that great and I can do that.

Just one question. How do I stop the item being highlighted with the default
blue once it is selected or change the default windows blue to another
color?

Thanks
Devron
"Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
news:jM*************@cpmsftngxa06.phx.gbl...

Hi Devron,

Hit-test means that you calculate the mouse point is over which item by the mouse's x, y coordinate and the height, width of every item.

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Newsgroups: microsoft.public.dotnet.languages.vb
| From: v-*****@online.microsoft.com (Jeffrey Tan[MSFT])
| Organization: Microsoft
| Date: Thu, 09 Oct 2003 02:42:05 GMT
| Subject: RE: Listview Highlight
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
|
|
| Hi Devron,
|
| I think you should do some hit-test yourself to determine the mouse is
over
| which item.
| You can handle your hit-test code in MouseHover event, if you want to
| change its color not imediatly.
| If you want the item's color change imediatly, you can refer to the
| MouseEnter and MouseLeave event.
|
| If you still have any unclear, please feel free to let me know.
|
| Best regards,
| Jeffrey Tan
| Microsoft Online Partner Support
| Get Secure! - www.microsoft.com/security
| This posting is provided "as is" with no warranties and confers no rights. |
| --------------------
| | From: "Devron Blatchford" <de****@auspine.com.au>
| | Subject: Listview Highlight
| | Date: Thu, 9 Oct 2003 10:09:42 +0930
| | Lines: 11
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| | Message-ID: <#E**************@TK2MSFTNGP12.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.languages.vb
| | NNTP-Posting-Host: 203.108.249.179
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145204
| | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| |
| | 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 do this?
| |
| | Thanks
| | Devron
| |
| |
| |
|

Nov 20 '05 #4

Hi Devron,

It seems that when you select the item, its backcolor and forecolor will
both been cleared and display the color of the system color(I mean the
default selected mode item color ), so it needs not extra handle.

For your second "change the default windows blue to another", I do not
quite understand, can you explain to me more clear?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Devron Blatchford" <de****@auspine.com.au>
| References: <#E**************@TK2MSFTNGP12.phx.gbl>
<SQ**************@cpmsftngxa06.phx.gbl>
<jM*************@cpmsftngxa06.phx.gbl>
| Subject: Re: Listview Highlight
| Date: Thu, 9 Oct 2003 12:56:38 +0930
| Lines: 91
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <O9**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 203.108.249.179
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145221
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Ok, that great and I can do that.
|
| Just one question. How do I stop the item being highlighted with the
default
| blue once it is selected or change the default windows blue to another
| color?
|
| Thanks
| Devron
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| news:jM*************@cpmsftngxa06.phx.gbl...
| >
| > Hi Devron,
| >
| > Hit-test means that you calculate the mouse point is over which item by
| the
| > mouse's x, y coordinate and the height, width of every item.
| >
| > Hope this helps,
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | From: v-*****@online.microsoft.com (Jeffrey Tan[MSFT])
| > | Organization: Microsoft
| > | Date: Thu, 09 Oct 2003 02:42:05 GMT
| > | Subject: RE: Listview Highlight
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > |
| > |
| > | Hi Devron,
| > |
| > | I think you should do some hit-test yourself to determine the mouse is
| > over
| > | which item.
| > | You can handle your hit-test code in MouseHover event, if you want to
| > | change its color not imediatly.
| > | If you want the item's color change imediatly, you can refer to the
| > | MouseEnter and MouseLeave event.
| > |
| > | If you still have any unclear, please feel free to let me know.
| > |
| > | Best regards,
| > | Jeffrey Tan
| > | Microsoft Online Partner Support
| > | Get Secure! - www.microsoft.com/security
| > | This posting is provided "as is" with no warranties and confers no
| rights.
| > |
| > | --------------------
| > | | From: "Devron Blatchford" <de****@auspine.com.au>
| > | | Subject: Listview Highlight
| > | | Date: Thu, 9 Oct 2003 10:09:42 +0930
| > | | Lines: 11
| > | | X-Priority: 3
| > | | X-MSMail-Priority: Normal
| > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | | Message-ID: <#E**************@TK2MSFTNGP12.phx.gbl>
| > | | Newsgroups: microsoft.public.dotnet.languages.vb
| > | | NNTP-Posting-Host: 203.108.249.179
| > | | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| > | | Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.vb:145204
| > | | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | |
| > | | 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 do this?
| > | |
| > | | Thanks
| > | | Devron
| > | |
| > | |
| > | |
| > |
| >
|
|
|

Nov 20 '05 #5
Basically I want to sepcify the selected colours myself insted of using the
default windows colours. I can change the item colours but the selected
color is always the default system selected colour.

I want to ovewrite this.

Thanks
Devron

"Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
news:RM**************@cpmsftngxa06.phx.gbl...

Hi Devron,

It seems that when you select the item, its backcolor and forecolor will
both been cleared and display the color of the system color(I mean the
default selected mode item color ), so it needs not extra handle.

For your second "change the default windows blue to another", I do not
quite understand, can you explain to me more clear?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Devron Blatchford" <de****@auspine.com.au>
| References: <#E**************@TK2MSFTNGP12.phx.gbl>
<SQ**************@cpmsftngxa06.phx.gbl>
<jM*************@cpmsftngxa06.phx.gbl>
| Subject: Re: Listview Highlight
| Date: Thu, 9 Oct 2003 12:56:38 +0930
| Lines: 91
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <O9**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 203.108.249.179
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145221
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Ok, that great and I can do that.
|
| Just one question. How do I stop the item being highlighted with the
default
| blue once it is selected or change the default windows blue to another
| color?
|
| Thanks
| Devron
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| news:jM*************@cpmsftngxa06.phx.gbl...
| >
| > Hi Devron,
| >
| > Hit-test means that you calculate the mouse point is over which item by | the
| > mouse's x, y coordinate and the height, width of every item.
| >
| > Hope this helps,
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | From: v-*****@online.microsoft.com (Jeffrey Tan[MSFT])
| > | Organization: Microsoft
| > | Date: Thu, 09 Oct 2003 02:42:05 GMT
| > | Subject: RE: Listview Highlight
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > |
| > |
| > | Hi Devron,
| > |
| > | I think you should do some hit-test yourself to determine the mouse is | > over
| > | which item.
| > | You can handle your hit-test code in MouseHover event, if you want to | > | change its color not imediatly.
| > | If you want the item's color change imediatly, you can refer to the
| > | MouseEnter and MouseLeave event.
| > |
| > | If you still have any unclear, please feel free to let me know.
| > |
| > | Best regards,
| > | Jeffrey Tan
| > | Microsoft Online Partner Support
| > | Get Secure! - www.microsoft.com/security
| > | This posting is provided "as is" with no warranties and confers no
| rights.
| > |
| > | --------------------
| > | | From: "Devron Blatchford" <de****@auspine.com.au>
| > | | Subject: Listview Highlight
| > | | Date: Thu, 9 Oct 2003 10:09:42 +0930
| > | | Lines: 11
| > | | X-Priority: 3
| > | | X-MSMail-Priority: Normal
| > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | | Message-ID: <#E**************@TK2MSFTNGP12.phx.gbl>
| > | | Newsgroups: microsoft.public.dotnet.languages.vb
| > | | NNTP-Posting-Host: 203.108.249.179
| > | | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl | > | | Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.vb:145204
| > | | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | |
| > | | 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 do this?
| > | |
| > | | Thanks
| > | | Devron
| > | |
| > | |
| > | |
| > |
| >
|
|
|

Nov 20 '05 #6

Hi Devron,

I got it.
Because change the system color will effect all the control in the system,
I think you should do the owner-draw to the ListView Control yourself.
To do ListView owner-draw in .Net C#, you can refer to this document:
http://dotnetclient/Whidbey/Runtime%.../OwnerDraw.doc

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Devron Blatchford" <de****@auspine.com.au>
| References: <#E**************@TK2MSFTNGP12.phx.gbl>
<SQ**************@cpmsftngxa06.phx.gbl>
<jM*************@cpmsftngxa06.phx.gbl>
<O9**************@TK2MSFTNGP09.phx.gbl>
<RM**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Listview Highlight
| Date: Fri, 10 Oct 2003 13:14:36 +0930
| Lines: 151
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <OS**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 203.108.249.179
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145570
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Basically I want to sepcify the selected colours myself insted of using
the
| default windows colours. I can change the item colours but the selected
| color is always the default system selected colour.
|
| I want to ovewrite this.
|
| Thanks
| Devron
|
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| news:RM**************@cpmsftngxa06.phx.gbl...
| >
| > Hi Devron,
| >
| > It seems that when you select the item, its backcolor and forecolor will
| > both been cleared and display the color of the system color(I mean the
| > default selected mode item color ), so it needs not extra handle.
| >
| > For your second "change the default windows blue to another", I do not
| > quite understand, can you explain to me more clear?
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | From: "Devron Blatchford" <de****@auspine.com.au>
| > | References: <#E**************@TK2MSFTNGP12.phx.gbl>
| > <SQ**************@cpmsftngxa06.phx.gbl>
| > <jM*************@cpmsftngxa06.phx.gbl>
| > | Subject: Re: Listview Highlight
| > | Date: Thu, 9 Oct 2003 12:56:38 +0930
| > | Lines: 91
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <O9**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: 203.108.249.179
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145221
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | Ok, that great and I can do that.
| > |
| > | Just one question. How do I stop the item being highlighted with the
| > default
| > | blue once it is selected or change the default windows blue to another
| > | color?
| > |
| > | Thanks
| > | Devron
| > |
| > |
| > | "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| > | news:jM*************@cpmsftngxa06.phx.gbl...
| > | >
| > | > Hi Devron,
| > | >
| > | > Hit-test means that you calculate the mouse point is over which item
| by
| > | the
| > | > mouse's x, y coordinate and the height, width of every item.
| > | >
| > | > Hope this helps,
| > | > Best regards,
| > | > Jeffrey Tan
| > | > Microsoft Online Partner Support
| > | > Get Secure! - www.microsoft.com/security
| > | > This posting is provided "as is" with no warranties and confers no
| > rights.
| > | >
| > | > --------------------
| > | > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | From: v-*****@online.microsoft.com (Jeffrey Tan[MSFT])
| > | > | Organization: Microsoft
| > | > | Date: Thu, 09 Oct 2003 02:42:05 GMT
| > | > | Subject: RE: Listview Highlight
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > | MIME-Version: 1.0
| > | > | Content-Type: text/plain
| > | > | Content-Transfer-Encoding: 7bit
| > | > |
| > | > |
| > | > | Hi Devron,
| > | > |
| > | > | I think you should do some hit-test yourself to determine the
mouse
| is
| > | > over
| > | > | which item.
| > | > | You can handle your hit-test code in MouseHover event, if you want
| to
| > | > | change its color not imediatly.
| > | > | If you want the item's color change imediatly, you can refer to
the
| > | > | MouseEnter and MouseLeave event.
| > | > |
| > | > | If you still have any unclear, please feel free to let me know.
| > | > |
| > | > | Best regards,
| > | > | Jeffrey Tan
| > | > | Microsoft Online Partner Support
| > | > | Get Secure! - www.microsoft.com/security
| > | > | This posting is provided "as is" with no warranties and confers no
| > | rights.
| > | > |
| > | > | --------------------
| > | > | | From: "Devron Blatchford" <de****@auspine.com.au>
| > | > | | Subject: Listview Highlight
| > | > | | Date: Thu, 9 Oct 2003 10:09:42 +0930
| > | > | | Lines: 11
| > | > | | X-Priority: 3
| > | > | | X-MSMail-Priority: Normal
| > | > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | | Message-ID: <#E**************@TK2MSFTNGP12.phx.gbl>
| > | > | | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | | NNTP-Posting-Host: 203.108.249.179
| > | > | | Path:
| cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| > | > | | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.languages.vb:145204
| > | > | | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > | |
| > | > | | 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 do this?
| > | > | |
| > | > | | Thanks
| > | > | | Devron
| > | > | |
| > | > | |
| > | > | |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #7
FM
that links is bogus

"Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
news:xB**************@cpmsftngxa06.phx.gbl...

Hi Devron,

I got it.
Because change the system color will effect all the control in the system,
I think you should do the owner-draw to the ListView Control yourself.
To do ListView owner-draw in .Net C#, you can refer to this document:
http://dotnetclient/Whidbey/Runtime%.../OwnerDraw.doc

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Devron Blatchford" <de****@auspine.com.au>
| References: <#E**************@TK2MSFTNGP12.phx.gbl>
<SQ**************@cpmsftngxa06.phx.gbl>
<jM*************@cpmsftngxa06.phx.gbl>
<O9**************@TK2MSFTNGP09.phx.gbl>
<RM**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Listview Highlight
| Date: Fri, 10 Oct 2003 13:14:36 +0930
| Lines: 151
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <OS**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 203.108.249.179
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145570
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Basically I want to sepcify the selected colours myself insted of using
the
| default windows colours. I can change the item colours but the selected
| color is always the default system selected colour.
|
| I want to ovewrite this.
|
| Thanks
| Devron
|
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| news:RM**************@cpmsftngxa06.phx.gbl...
| >
| > Hi Devron,
| >
| > It seems that when you select the item, its backcolor and forecolor will | > both been cleared and display the color of the system color(I mean the
| > default selected mode item color ), so it needs not extra handle.
| >
| > For your second "change the default windows blue to another", I do not
| > quite understand, can you explain to me more clear?
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | From: "Devron Blatchford" <de****@auspine.com.au>
| > | References: <#E**************@TK2MSFTNGP12.phx.gbl>
| > <SQ**************@cpmsftngxa06.phx.gbl>
| > <jM*************@cpmsftngxa06.phx.gbl>
| > | Subject: Re: Listview Highlight
| > | Date: Thu, 9 Oct 2003 12:56:38 +0930
| > | Lines: 91
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <O9**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: 203.108.249.179
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145221 | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | Ok, that great and I can do that.
| > |
| > | Just one question. How do I stop the item being highlighted with the
| > default
| > | blue once it is selected or change the default windows blue to another | > | color?
| > |
| > | Thanks
| > | Devron
| > |
| > |
| > | "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| > | news:jM*************@cpmsftngxa06.phx.gbl...
| > | >
| > | > Hi Devron,
| > | >
| > | > Hit-test means that you calculate the mouse point is over which item | by
| > | the
| > | > mouse's x, y coordinate and the height, width of every item.
| > | >
| > | > Hope this helps,
| > | > Best regards,
| > | > Jeffrey Tan
| > | > Microsoft Online Partner Support
| > | > Get Secure! - www.microsoft.com/security
| > | > This posting is provided "as is" with no warranties and confers no
| > rights.
| > | >
| > | > --------------------
| > | > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | From: v-*****@online.microsoft.com (Jeffrey Tan[MSFT])
| > | > | Organization: Microsoft
| > | > | Date: Thu, 09 Oct 2003 02:42:05 GMT
| > | > | Subject: RE: Listview Highlight
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > | MIME-Version: 1.0
| > | > | Content-Type: text/plain
| > | > | Content-Transfer-Encoding: 7bit
| > | > |
| > | > |
| > | > | Hi Devron,
| > | > |
| > | > | I think you should do some hit-test yourself to determine the
mouse
| is
| > | > over
| > | > | which item.
| > | > | You can handle your hit-test code in MouseHover event, if you want | to
| > | > | change its color not imediatly.
| > | > | If you want the item's color change imediatly, you can refer to
the
| > | > | MouseEnter and MouseLeave event.
| > | > |
| > | > | If you still have any unclear, please feel free to let me know.
| > | > |
| > | > | Best regards,
| > | > | Jeffrey Tan
| > | > | Microsoft Online Partner Support
| > | > | Get Secure! - www.microsoft.com/security
| > | > | This posting is provided "as is" with no warranties and confers no | > | rights.
| > | > |
| > | > | --------------------
| > | > | | From: "Devron Blatchford" <de****@auspine.com.au>
| > | > | | Subject: Listview Highlight
| > | > | | Date: Thu, 9 Oct 2003 10:09:42 +0930
| > | > | | Lines: 11
| > | > | | X-Priority: 3
| > | > | | X-MSMail-Priority: Normal
| > | > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | | Message-ID: <#E**************@TK2MSFTNGP12.phx.gbl>
| > | > | | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | | NNTP-Posting-Host: 203.108.249.179
| > | > | | Path:
| cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| > | > | | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.languages.vb:145204
| > | > | | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > | |
| > | > | | 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 do this?
| > | > | |
| > | > | | Thanks
| > | > | | Devron
| > | > | |
| > | > | |
| > | > | |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #8
Hi, FM

Thanks for the heads up. I'll make sure Jeffrey knows about it.

Thanks

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.

--------------------
| From: "FM" <fm****@telocity.com>
| References: <#E**************@TK2MSFTNGP12.phx.gbl>
<SQ**************@cpmsftngxa06.phx.gbl>
<jM*************@cpmsftngxa06.phx.gbl>
<O9**************@TK2MSFTNGP09.phx.gbl>
<RM**************@cpmsftngxa06.phx.gbl>
<OS**************@TK2MSFTNGP11.phx.gbl>
<xB**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Listview Highlight
| Date: Fri, 10 Oct 2003 11:55:40 -0400
| Lines: 211
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <u#**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: pool-141-150-215-203.delv.east.verizon.net
141.150.215.203
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145722
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| that links is bogus
|
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| news:xB**************@cpmsftngxa06.phx.gbl...
| >
| > Hi Devron,
| >
| > I got it.
| > Because change the system color will effect all the control in the
system,
| > I think you should do the owner-draw to the ListView Control yourself.
| > To do ListView owner-draw in .Net C#, you can refer to this document:
| > http://dotnetclient/Whidbey/Runtime%.../OwnerDraw.doc
| >
| > Hope this helps,
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | From: "Devron Blatchford" <de****@auspine.com.au>
| > | References: <#E**************@TK2MSFTNGP12.phx.gbl>
| > <SQ**************@cpmsftngxa06.phx.gbl>
| > <jM*************@cpmsftngxa06.phx.gbl>
| > <O9**************@TK2MSFTNGP09.phx.gbl>
| > <RM**************@cpmsftngxa06.phx.gbl>
| > | Subject: Re: Listview Highlight
| > | Date: Fri, 10 Oct 2003 13:14:36 +0930
| > | Lines: 151
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <OS**************@TK2MSFTNGP11.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: 203.108.249.179
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145570
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | Basically I want to sepcify the selected colours myself insted of
using
| > the
| > | default windows colours. I can change the item colours but the
selected
| > | color is always the default system selected colour.
| > |
| > | I want to ovewrite this.
| > |
| > | Thanks
| > | Devron
| > |
| > |
| > |
| > | "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| > | news:RM**************@cpmsftngxa06.phx.gbl...
| > | >
| > | > Hi Devron,
| > | >
| > | > It seems that when you select the item, its backcolor and forecolor
| will
| > | > both been cleared and display the color of the system color(I mean
the
| > | > default selected mode item color ), so it needs not extra handle.
| > | >
| > | > For your second "change the default windows blue to another", I do
not
| > | > quite understand, can you explain to me more clear?
| > | >
| > | > Best regards,
| > | > Jeffrey Tan
| > | > Microsoft Online Partner Support
| > | > Get Secure! - www.microsoft.com/security
| > | > This posting is provided "as is" with no warranties and confers no
| > rights.
| > | >
| > | > --------------------
| > | > | From: "Devron Blatchford" <de****@auspine.com.au>
| > | > | References: <#E**************@TK2MSFTNGP12.phx.gbl>
| > | > <SQ**************@cpmsftngxa06.phx.gbl>
| > | > <jM*************@cpmsftngxa06.phx.gbl>
| > | > | Subject: Re: Listview Highlight
| > | > | Date: Thu, 9 Oct 2003 12:56:38 +0930
| > | > | Lines: 91
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | Message-ID: <O9**************@TK2MSFTNGP09.phx.gbl>
| > | > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | NNTP-Posting-Host: 203.108.249.179
| > | > | Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| > | > | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.vb:145221
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > |
| > | > | Ok, that great and I can do that.
| > | > |
| > | > | Just one question. How do I stop the item being highlighted with
the
| > | > default
| > | > | blue once it is selected or change the default windows blue to
| another
| > | > | color?
| > | > |
| > | > | Thanks
| > | > | Devron
| > | > |
| > | > |
| > | > | "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in
message
| > | > | news:jM*************@cpmsftngxa06.phx.gbl...
| > | > | >
| > | > | > Hi Devron,
| > | > | >
| > | > | > Hit-test means that you calculate the mouse point is over which
| item
| > | by
| > | > | the
| > | > | > mouse's x, y coordinate and the height, width of every item.
| > | > | >
| > | > | > Hope this helps,
| > | > | > Best regards,
| > | > | > Jeffrey Tan
| > | > | > Microsoft Online Partner Support
| > | > | > Get Secure! - www.microsoft.com/security
| > | > | > This posting is provided "as is" with no warranties and confers
no
| > | > rights.
| > | > | >
| > | > | > --------------------
| > | > | > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | > | From: v-*****@online.microsoft.com (Jeffrey Tan[MSFT])
| > | > | > | Organization: Microsoft
| > | > | > | Date: Thu, 09 Oct 2003 02:42:05 GMT
| > | > | > | Subject: RE: Listview Highlight
| > | > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > | > | MIME-Version: 1.0
| > | > | > | Content-Type: text/plain
| > | > | > | Content-Transfer-Encoding: 7bit
| > | > | > |
| > | > | > |
| > | > | > | Hi Devron,
| > | > | > |
| > | > | > | I think you should do some hit-test yourself to determine the
| > mouse
| > | is
| > | > | > over
| > | > | > | which item.
| > | > | > | You can handle your hit-test code in MouseHover event, if you
| want
| > | to
| > | > | > | change its color not imediatly.
| > | > | > | If you want the item's color change imediatly, you can refer
to
| > the
| > | > | > | MouseEnter and MouseLeave event.
| > | > | > |
| > | > | > | If you still have any unclear, please feel free to let me
know.
| > | > | > |
| > | > | > | Best regards,
| > | > | > | Jeffrey Tan
| > | > | > | Microsoft Online Partner Support
| > | > | > | Get Secure! - www.microsoft.com/security
| > | > | > | This posting is provided "as is" with no warranties and
confers
| no
| > | > | rights.
| > | > | > |
| > | > | > | --------------------
| > | > | > | | From: "Devron Blatchford" <de****@auspine.com.au>
| > | > | > | | Subject: Listview Highlight
| > | > | > | | Date: Thu, 9 Oct 2003 10:09:42 +0930
| > | > | > | | Lines: 11
| > | > | > | | X-Priority: 3
| > | > | > | | X-MSMail-Priority: Normal
| > | > | > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | > | | Message-ID: <#E**************@TK2MSFTNGP12.phx.gbl>
| > | > | > | | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | > | | NNTP-Posting-Host: 203.108.249.179
| > | > | > | | Path:
| > | cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| > | > | > | | Xref: cpmsftngxa06.phx.gbl
| > | > microsoft.public.dotnet.languages.vb:145204
| > | > | > | | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > | > | |
| > | > | > | | 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 do this?
| > | > | > | |
| > | > | > | | Thanks
| > | > | > | | Devron
| > | > | > | |
| > | > | > | |
| > | > | > | |
| > | > | > |
| > | > | >
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #9

Hi,

There is a .Net C# samples related to ListView ownerdraw,
here is the link:
http://www.codeproject.com/cs/miscct...tomheader.asp?
print=true

Also, there is a Visual C++ sample, that is expose a full
ownerdraw feature:
http://www.codeguru.com/listview/supergrid.shtml

Hope all this helps, if you still have any questions,
please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and
confers no rights.

-----Original Message-----

Hi Devron,

I got it.
Because change the system color will effect all the control in the system,I think you should do the owner-draw to the ListView Control yourself.To do ListView owner-draw in .Net C#, you can refer to this document:http://dotnetclient/Whidbey/Runtime%.../OwnerDraw.doc

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: "Devron Blatchford" <de****@auspine.com.au>
| References: <#E**************@TK2MSFTNGP12.phx.gbl>
<SQ**************@cpmsftngxa06.phx.gbl>
<jM*************@cpmsftngxa06.phx.gbl>
<O9**************@TK2MSFTNGP09.phx.gbl>
<RM**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Listview Highlight
| Date: Fri, 10 Oct 2003 13:14:36 +0930
| Lines: 151
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165| Message-ID: <OS**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 203.108.249.179
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl! TK2MSFTNGP11.phx.gbl| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145570| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Basically I want to sepcify the selected colours myself insted of usingthe
| default windows colours. I can change the item colours but the selected| color is always the default system selected colour.
|
| I want to ovewrite this.
|
| Thanks
| Devron
|
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message| news:RM**************@cpmsftngxa06.phx.gbl...
| >
| > Hi Devron,
| >
| > It seems that when you select the item, its backcolor and forecolor will| > both been cleared and display the color of the system color(I mean the| > default selected mode item color ), so it needs not extra handle.| >
| > For your second "change the default windows blue to another", I do not| > quite understand, can you explain to me more clear?
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers norights.
| >
| > --------------------
| > | From: "Devron Blatchford" <de****@auspine.com.au>
| > | References: <#E**************@TK2MSFTNGP12.phx.gbl>
| > <SQ**************@cpmsftngxa06.phx.gbl>
| > <jM*************@cpmsftngxa06.phx.gbl>
| > | Subject: Re: Listview Highlight
| > | Date: Thu, 9 Oct 2003 12:56:38 +0930
| > | Lines: 91
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165| > | Message-ID: <O9**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: 203.108.249.179
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl! TK2MSFTNGP09.phx.gbl| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145221| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | Ok, that great and I can do that.
| > |
| > | Just one question. How do I stop the item being highlighted with the| > default
| > | blue once it is selected or change the default windows blue to another| > | color?
| > |
| > | Thanks
| > | Devron
| > |
| > |
| > | "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message| > | news:jM*************@cpmsftngxa06.phx.gbl...
| > | >
| > | > Hi Devron,
| > | >
| > | > Hit-test means that you calculate the mouse point is over which item| by
| > | the
| > | > mouse's x, y coordinate and the height, width of every item.| > | >
| > | > Hope this helps,
| > | > Best regards,
| > | > Jeffrey Tan
| > | > Microsoft Online Partner Support
| > | > Get Secure! - www.microsoft.com/security
| > | > This posting is provided "as is" with no warranties and confers no| > rights.
| > | >
| > | > --------------------
| > | > | Newsgroups: microsoft.public.dotnet.languages.vb| > | > | From: v-*****@online.microsoft.com (Jeffrey Tan [MSFT])| > | > | Organization: Microsoft
| > | > | Date: Thu, 09 Oct 2003 02:42:05 GMT
| > | > | Subject: RE: Listview Highlight
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb| > | > | MIME-Version: 1.0
| > | > | Content-Type: text/plain
| > | > | Content-Transfer-Encoding: 7bit
| > | > |
| > | > |
| > | > | Hi Devron,
| > | > |
| > | > | I think you should do some hit-test yourself to determine themouse
| is
| > | > over
| > | > | which item.
| > | > | You can handle your hit-test code in MouseHover event, if you want| to
| > | > | change its color not imediatly.
| > | > | If you want the item's color change imediatly, you can refer tothe
| > | > | MouseEnter and MouseLeave event.
| > | > |
| > | > | If you still have any unclear, please feel free to let me know.| > | > |
| > | > | Best regards,
| > | > | Jeffrey Tan
| > | > | Microsoft Online Partner Support
| > | > | Get Secure! - www.microsoft.com/security
| > | > | This posting is provided "as is" with no warranties and confers no| > | rights.
| > | > |
| > | > | --------------------
| > | > | | From: "Devron Blatchford" <de****@auspine.com.au>| > | > | | Subject: Listview Highlight
| > | > | | Date: Thu, 9 Oct 2003 10:09:42 +0930
| > | > | | Lines: 11
| > | > | | X-Priority: 3
| > | > | | X-MSMail-Priority: Normal
| > | > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158| > | > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165| > | > | | Message-ID: <#E**************@TK2MSFTNGP12.phx.gbl>| > | > | | Newsgroups: microsoft.public.dotnet.languages.vb| > | > | | NNTP-Posting-Host: 203.108.249.179
| > | > | | Path:
| cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl! TK2MSFTNGP12.phx.gbl| > | > | | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.languages.vb:145204
| > | > | | X-Tomcat-NG: microsoft.public.dotnet.languages.vb| > | > | |
| > | > | | Hi there,
| > | > | |
| > | > | | Just wondering if I change the back and fore colour of alistview
| > item
| > | > | when
| > | > | | the mouse hovers over it? I want to overide the default windows| > | colour.
| > | > | |
| > | > | | Can someone please tell me how to do this?
| > | > | |
| > | > | | Thanks
| > | > | | Devron
| > | > | |
| > | > | |
| > | > | |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

.

Nov 20 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Martin Streller | last post: by
reply views Thread by willow1480 | last post: by
1 post views Thread by cider123 | last post: by
2 posts views Thread by Niels Jensen | last post: by
7 posts views Thread by > Adrian | last post: by
reply views Thread by dm3281 | last post: by
6 posts views Thread by Rich Raffenetti | last post: by

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.