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

C#

 
GeneralRe: Printing a blank page Pin
Shaun Becker15-Mar-04 9:25
Shaun Becker15-Mar-04 9:25 
GeneralRe: Printing a blank page Pin
John Fisher15-Mar-04 16:55
John Fisher15-Mar-04 16:55 
GeneralCheckbox in Subitem of ListView Pin
katetsai15-Mar-04 2:44
katetsai15-Mar-04 2:44 
GeneralRe: Checkbox in Subitem of ListView Pin
Heath Stewart15-Mar-04 5:11
protectorHeath Stewart15-Mar-04 5:11 
GeneralRe: Checkbox in Subitem of ListView Pin
katetsai15-Mar-04 5:58
katetsai15-Mar-04 5:58 
GeneralRe: Checkbox in Subitem of ListView Pin
Heath Stewart15-Mar-04 6:14
protectorHeath Stewart15-Mar-04 6:14 
GeneralRe: Checkbox in Subitem of ListView Pin
John Fisher15-Mar-04 6:15
John Fisher15-Mar-04 6:15 
GeneralRe: Checkbox in Subitem of ListView Pin
Heath Stewart15-Mar-04 6:31
protectorHeath Stewart15-Mar-04 6:31 
Actually, I'm talking about extending the ListView, overriding WndProc, P/Invoking a few native APIs like SendMessage, declaring necessary consts and structs, and handling notification messages and sending windows messages as necessary like you would in Win32 programming. I've done it to provide sorted column background colors and sorting arrows on column headers. There are several articles on that here on CodeProject as well (though if you have decent Win32 programming experience it's not hard to figure out since it's what you had to do to extend anything anyway).

For instance, you could handle the NM_CUSTOMDRAW to paint to shift the text and draw the check box (for which you can use ControlPaint.DrawCheckBox if you create a Graphics object from the necessary handles). It's complicated to explain and is content meant for an article. Fortunately, there is articles on this here on CodeProject and elsewhere on the web. To the original poster, you just have to search for the right terms, like ListView SubItem CheckBox C#[^], which came up with several results (including some here on CodeProject).

 

Microsoft MVP, Visual C#
My Articles
GeneralLocalizing standard types in PropertyGrid Pin
i_blazhko15-Mar-04 1:49
i_blazhko15-Mar-04 1:49 
GeneralRe: Localizing standard types in PropertyGrid Pin
Heath Stewart15-Mar-04 5:10
protectorHeath Stewart15-Mar-04 5:10 
GeneralRe: Localizing standard types in PropertyGrid Pin
i_blazhko15-Mar-04 22:42
i_blazhko15-Mar-04 22:42 
GeneralRe: Localizing standard types in PropertyGrid Pin
Heath Stewart16-Mar-04 2:48
protectorHeath Stewart16-Mar-04 2:48 
GeneralRe: Localizing standard types in PropertyGrid Pin
i_blazhko16-Mar-04 3:04
i_blazhko16-Mar-04 3:04 
GeneralGet the true icons of a file Pin
Jonathan Slenders15-Mar-04 0:29
Jonathan Slenders15-Mar-04 0:29 
GeneralRe: Get the true icons of a file Pin
SimonS15-Mar-04 0:56
SimonS15-Mar-04 0:56 
GeneralRe: Get the true icons of a file Pin
Heath Stewart15-Mar-04 5:09
protectorHeath Stewart15-Mar-04 5:09 
Questionhow to visible remove and add data on ListView Pin
yu-yu15-Mar-04 0:10
yu-yu15-Mar-04 0:10 
General.NET Remoting and internal errors. Pin
SimonS14-Mar-04 21:58
SimonS14-Mar-04 21:58 
GeneralRe: .NET Remoting and internal errors. Pin
Heath Stewart15-Mar-04 4:06
protectorHeath Stewart15-Mar-04 4:06 
Generalprevious record problem Pin
ASGill14-Mar-04 16:50
ASGill14-Mar-04 16:50 
GeneralRe: previous record problem Pin
Edbert P14-Mar-04 18:31
Edbert P14-Mar-04 18:31 
GeneralRe: previous record problem Pin
dishanf14-Mar-04 21:42
dishanf14-Mar-04 21:42 
QuestionWindowpanel for a mdi programm? Pin
Franz Pentenrieder14-Mar-04 15:43
Franz Pentenrieder14-Mar-04 15:43 
AnswerRe: Windowpanel for a mdi programm? Pin
Heath Stewart15-Mar-04 4:02
protectorHeath Stewart15-Mar-04 4:02 
GeneralOpen ACCESS DataBase Pin
Snowjim14-Mar-04 13:46
Snowjim14-Mar-04 13:46 

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.