Click here to Skip to main content
15,901,122 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can don't show application in task manager? Pin
Tamimi - Code27-Feb-07 23:33
Tamimi - Code27-Feb-07 23:33 
AnswerRe: how can don't show application in task manager? Pin
Pete O'Hanlon27-Feb-07 23:22
mvePete O'Hanlon27-Feb-07 23:22 
GeneralRe: how can don't show application in task manager? Pin
Dan Neely28-Feb-07 2:04
Dan Neely28-Feb-07 2:04 
GeneralRe: how can don't show application in task manager? Pin
ednrgc28-Feb-07 3:40
ednrgc28-Feb-07 3:40 
GeneralRe: how can don't show application in task manager? Pin
Pete O'Hanlon28-Feb-07 10:36
mvePete O'Hanlon28-Feb-07 10:36 
Questionhow to secure erase/wipe a file ? Pin
Radu Sorin27-Feb-07 21:58
Radu Sorin27-Feb-07 21:58 
QuestionConvert Video to Sound, or extract sound from video Pin
AmroDigital27-Feb-07 21:30
AmroDigital27-Feb-07 21:30 
QuestionCustom Draw in ListView. Pin
David Fleming27-Feb-07 21:29
David Fleming27-Feb-07 21:29 
There's an excellent article here on CodeProject by Michael Dunn about intercepting NM_CUSTOMDRAW messages to modify the look of a ListView -- not as involved as OwnerDraw, though, which is nice.
Here's the link: http://www.codeproject.com/listctrl/lvcustomdraw.asp[^]

Unfortunately, the article is not written for C#. I was wondering how to hook into the message stream to intercept and act on NM_CUSTOMDRAW messages in C#. I asked at the article, but Michael does not know.

I've seen the example code in the C# help on using OwnerDraw, but that of course requires handling almost all of the drawing chores. Can we, in C#, hook into the message stream and just do custom draw type stuff like described in Michael's excellent article? If so, how? What event handler do I need? Where do I declare it? Stuff like that. Or do I have to create a ListView derived class and override the WndProc? (which I'd rather not do if I can avoid it)
AnswerRe: Custom Draw in ListView. Pin
J. Dunlap27-Feb-07 23:48
J. Dunlap27-Feb-07 23:48 
GeneralRe: Custom Draw in ListView. Pin
David Fleming28-Feb-07 9:25
David Fleming28-Feb-07 9:25 
GeneralRe: Custom Draw in ListView. Pin
David Fleming28-Feb-07 11:01
David Fleming28-Feb-07 11:01 
GeneralRe: Custom Draw in ListView. Pin
David Fleming28-Feb-07 12:00
David Fleming28-Feb-07 12:00 
GeneralRe: Custom Draw in ListView. Pin
J. Dunlap28-Feb-07 19:55
J. Dunlap28-Feb-07 19:55 
GeneralRe: Custom Draw in ListView. Pin
David Fleming28-Feb-07 23:42
David Fleming28-Feb-07 23:42 
GeneralRe: Custom Draw in ListView. Pin
J. Dunlap1-Mar-07 0:32
J. Dunlap1-Mar-07 0:32 
GeneralRe: Custom Draw in ListView. [modified] Pin
David Fleming1-Mar-07 10:42
David Fleming1-Mar-07 10:42 
Questioncreate new change event for existing property Pin
webseal27-Feb-07 21:06
webseal27-Feb-07 21:06 
AnswerRe: create new change event for existing property Pin
Stefan Troschuetz27-Feb-07 22:29
Stefan Troschuetz27-Feb-07 22:29 
QuestionCrystal Reports, Windows Froms and Web Services Pin
Alaa' Al Atrash27-Feb-07 20:55
Alaa' Al Atrash27-Feb-07 20:55 
QuestionFileSystemWatcher which can update to a SQL database? Pin
ananth_8227-Feb-07 20:54
ananth_8227-Feb-07 20:54 
AnswerRe: FileSystemWatcher which can update to a SQL database? Pin
andyharman27-Feb-07 23:17
professionalandyharman27-Feb-07 23:17 
AnswerRe: FileSystemWatcher which can update to a SQL database? Pin
Dave Kreskowiak28-Feb-07 2:56
mveDave Kreskowiak28-Feb-07 2:56 
QuestionHow to disable tab control in window form Pin
Duong Tien Nam27-Feb-07 20:53
Duong Tien Nam27-Feb-07 20:53 
AnswerRe: How to disable tab control in window form Pin
Martin#27-Feb-07 21:41
Martin#27-Feb-07 21:41 
GeneralRe: How to disable tab control in window form Pin
Duong Tien Nam27-Feb-07 22:20
Duong Tien Nam27-Feb-07 22:20 

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.