Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Media Player Pin
Kannan Kalyanaraman18-Feb-03 18:56
Kannan Kalyanaraman18-Feb-03 18:56 
Generalhelp in mobile application Pin
Jassim Rahma18-Feb-03 3:20
Jassim Rahma18-Feb-03 3:20 
Generalsnap-ins Pin
Sadegh18-Feb-03 2:32
Sadegh18-Feb-03 2:32 
GeneralRe: snap-ins Pin
Richard Deeming18-Feb-03 4:42
mveRichard Deeming18-Feb-03 4:42 
GeneralShell Programming in Web Forms Pin
TeraCoder18-Feb-03 1:41
TeraCoder18-Feb-03 1:41 
GeneralRe: Shell Programming in Web Forms Pin
Heath Stewart18-Feb-03 2:04
protectorHeath Stewart18-Feb-03 2:04 
GeneralListview selection behaviour Pin
SimonS18-Feb-03 0:24
SimonS18-Feb-03 0:24 
GeneralRe: Listview selection behaviour Pin
Heath Stewart18-Feb-03 2:19
protectorHeath Stewart18-Feb-03 2:19 
The default painting is what is causing this, so owner-drawing your ListView is exactly what you need. Even if you override ListView.OnSelectedIndexChanged (doing what your doing is not soon enough in the event chain) you still have to take care of all these color changes. To implement this form of owner-drawing, however, you'll probably have to override WndProc and having the LVN_* and NM_* notifications of Win32. You could try doing this in OnSelectedIndexChanged, but that won't give you the border you want.


Reminiscent of my younger years...
10 LOAD "SCISSORS"
20 RUN

GeneralRe: Listview selection behaviour Pin
Stephane Rodriguez.18-Feb-03 4:27
Stephane Rodriguez.18-Feb-03 4:27 
GeneralC# and problems working with Excel2000 Pin
Marix17-Feb-03 20:28
Marix17-Feb-03 20:28 
GeneralRe: C# and problems working with Excel2000 Pin
Stephane Rodriguez.17-Feb-03 20:56
Stephane Rodriguez.17-Feb-03 20:56 
GeneralRe: C# and problems working with Excel2000 Pin
Marix18-Feb-03 1:16
Marix18-Feb-03 1:16 
GeneralRe: C# and problems working with Excel2000 Pin
Stephane Rodriguez.18-Feb-03 1:21
Stephane Rodriguez.18-Feb-03 1:21 
GeneralRe: C# and problems working with Excel2000 Pin
Marix18-Feb-03 1:57
Marix18-Feb-03 1:57 
GeneralRe: C# and problems working with Excel2000 Pin
Alexander Kojevnikov19-Feb-03 6:43
Alexander Kojevnikov19-Feb-03 6:43 
GeneralRe: C# and problems working with Excel2000 Pin
Alexander Kojevnikov19-Feb-03 6:48
Alexander Kojevnikov19-Feb-03 6:48 
GeneralRe: C# and problems working with Excel2000 Pin
Marix20-Feb-03 2:21
Marix20-Feb-03 2:21 
QuestionAny example of TAPI Programming in C#? Pin
xdavidx17-Feb-03 19:14
xdavidx17-Feb-03 19:14 
AnswerRe: Any example of TAPI Programming in C#? Pin
Michael P Butler17-Feb-03 20:21
Michael P Butler17-Feb-03 20:21 
AnswerRe: Any example of TAPI Programming in C#? Pin
Richard Deeming18-Feb-03 1:06
mveRichard Deeming18-Feb-03 1:06 
GeneralProperty returns Collection Pin
Member 1697717-Feb-03 18:08
Member 1697717-Feb-03 18:08 
GeneralWindows Form and Command Line Pin
Braincrash17-Feb-03 16:47
Braincrash17-Feb-03 16:47 
GeneralRe: Windows Form and Command Line Pin
jtmtv1817-Feb-03 19:33
jtmtv1817-Feb-03 19:33 
GeneralRe: Windows Form and Command Line Pin
Braincrash18-Feb-03 7:02
Braincrash18-Feb-03 7:02 
GeneralRe: Windows Form and Command Line Pin
jtmtv1818-Feb-03 11:28
jtmtv1818-Feb-03 11:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.