Click here to Skip to main content
15,915,163 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multiligual and End-User defined labels...? Pin
Heath Stewart20-Dec-04 21:46
protectorHeath Stewart20-Dec-04 21:46 
GeneralRe: Multiligual and End-User defined labels...? Pin
Darren Weir20-Dec-04 23:57
Darren Weir20-Dec-04 23:57 
GeneralRe: Multiligual and End-User defined labels...? Pin
Sven Cipido21-Dec-04 1:11
Sven Cipido21-Dec-04 1:11 
GeneralRe: Multiligual and End-User defined labels...? Pin
Heath Stewart21-Dec-04 7:46
protectorHeath Stewart21-Dec-04 7:46 
Generalon SQL Server CE Pin
ting66820-Dec-04 17:39
ting66820-Dec-04 17:39 
GeneralRe: on SQL Server CE Pin
Heath Stewart20-Dec-04 21:21
protectorHeath Stewart20-Dec-04 21:21 
GeneralExtend window control as custom control problem Pin
ting66820-Dec-04 17:19
ting66820-Dec-04 17:19 
GeneralRe: Extend window control as custom control problem Pin
Heath Stewart20-Dec-04 21:30
protectorHeath Stewart20-Dec-04 21:30 
OnPaint is not used by the ListView control, as you could see by disassembling or decompiling the System.Windows.Forms.dll assembly.

Almost every control in Windows Forms simply encapsulates the Winodws Common Controls. In the case of some controls like ListView owner drawing the control simply by overriding OnPaint is not possible. To owner draw a List-View common control you need to override WndProc, define several custom drawing structures, and P/Invoke several native APIs.

For more information about the native List-View common control that is encapsulated by the ListView managed control, see http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/listview/reflist.asp[^].

For examples on this site about owner-drawing a ListView control, see the search http://www.codeproject.com/info/search.asp?cats=3&cats=5&searchkw=ListView[^].

You could also try searching this forum for "ListView" by clicking "Search comments" directly above this message area. We've talked about custom drawing a ListView quite a bit, and I know that I personally have posted several snippets of code that show how to draw certain parts through the custom drawing routines that the native Common Controls use.

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

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralPlatform independant... Pin
Malcolm Smart20-Dec-04 10:45
Malcolm Smart20-Dec-04 10:45 
GeneralRe: Platform independant... Pin
Nick Parker20-Dec-04 10:55
protectorNick Parker20-Dec-04 10:55 
GeneralSerializing the Forms Pin
Wail A.Salem20-Dec-04 10:28
Wail A.Salem20-Dec-04 10:28 
GeneralRe: Serializing the Forms Pin
Heath Stewart20-Dec-04 21:34
protectorHeath Stewart20-Dec-04 21:34 
GeneralDataGrid DoublClick dos'nt Response Pin
Wail A.Salem20-Dec-04 10:21
Wail A.Salem20-Dec-04 10:21 
GeneralRe: DataGrid DoublClick dos'nt Response Pin
Jay Shankar20-Dec-04 17:20
Jay Shankar20-Dec-04 17:20 
Generalwmi query related Pin
sujithapril20-Dec-04 8:53
sujithapril20-Dec-04 8:53 
GeneralRe: wmi query related Pin
Nick Parker20-Dec-04 10:06
protectorNick Parker20-Dec-04 10:06 
GeneralRe: wmi query related Pin
sujithapril20-Dec-04 10:57
sujithapril20-Dec-04 10:57 
Generali needwmi Pin
sujithapril20-Dec-04 8:46
sujithapril20-Dec-04 8:46 
QuestionHow to start a form from another thread Pin
SebbaP20-Dec-04 8:12
SebbaP20-Dec-04 8:12 
AnswerRe: How to start a form from another thread Pin
Michael Potter20-Dec-04 9:29
Michael Potter20-Dec-04 9:29 
GeneralRe: How to start a form from another thread Pin
SebbaP20-Dec-04 10:33
SebbaP20-Dec-04 10:33 
GeneralRe: How to start a form from another thread Pin
Michael Potter20-Dec-04 11:11
Michael Potter20-Dec-04 11:11 
GeneralRe: How to start a form from another thread Pin
SebbaP20-Dec-04 20:59
SebbaP20-Dec-04 20:59 
GeneralProblem getting array out of arraylist Pin
sciamachy20-Dec-04 6:20
sciamachy20-Dec-04 6:20 
GeneralRe: Problem getting array out of arraylist Pin
Heath Stewart20-Dec-04 6:33
protectorHeath Stewart20-Dec-04 6:33 

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.