Click to See Complete Forum and Search --> : [RESOLVED] Windows form control like this?


Pale
December 11th, 2008, 08:34 PM
Is there a windows form control that looks like this: http://i287.photobucket.com/albums/ll159/Pale091/Development/Ex.jpg (Snapshot from CCleaner )

If not, how can i make that with C#?

Thanks.

MadHatter
December 11th, 2008, 09:52 PM
I'm sure the datagridview could be made to look that way.

BigEd781
December 11th, 2008, 11:53 PM
Or a ListView using custom Column objects.

Arjay
December 12th, 2008, 12:42 AM
Is that a row entry or column headers?

BigEd781
December 12th, 2008, 03:40 AM
The only difference that I see between the image and a ListView is the (seemingly useless) checkbox in the first column.

Arjay
December 12th, 2008, 08:50 AM
The only difference that I see between the image and a ListView is the (seemingly useless) checkbox in the first column.My question is whether what we are seeing is a checkbox inside a column header (or a single entry row in a header-less listview).

Three5Eight
December 12th, 2008, 11:16 AM
My question is whether what we are seeing is a checkbox inside a column header (or a single entry row in a header-less listview).
It looks like its in the column header to me. I think that's what he is looking for. I don't know of any Windows control that can do that. Asside from ineriting from ListView and doing it yourself. But that's beyond my knowledge at the current time, so I can't help with that.

Arjay
December 12th, 2008, 02:02 PM
It looks like its in the column header to me. I think that's what he is looking for. I don't know of any Windows control that can do that. Asside from ineriting from ListView and doing it yourself. But that's beyond my knowledge at the current time, so I can't help with that.WPF can do that - easily.
P.S. It can even wire the check/uncheck event to select/deselect the children if that is what is desired.

BigEd781
December 12th, 2008, 02:28 PM
All it really takes (sans WPF) is a subclassed Column type with a child checkbox control.

Three5Eight
December 13th, 2008, 11:47 AM
I'll take a look at WPF then, because I need to change the UI of a ListView control myself. But its always been too much work for me to worry about right now.

JonnyPoet
December 13th, 2008, 04:23 PM
I'll take a look at WPF then, because I need to change the UI of a ListView control myself. But its always been too much work for me to worry about right now.But this needs your project to be a WPF project as you cannot mix it with awin Form project as much as I know

MadHatter
December 13th, 2008, 04:33 PM
I thought there were WPF Hosts that you could use in a windows form and a win32 host you could use inside WPF forms.

I've never worked w/ WPF because of the xml format of the layout & the fact that their support in visual studios is pathetic, but I could have sworn I heard about something like that when it was introduced.

Arjay
December 13th, 2008, 06:06 PM
WPF can be supported in WinForms and vice versa.

Visual Studio 2008 with SP1 has a better xaml editor. It's still not quite up to the WinForms editor, but it keeps getting better.

I find that Xaml is simple enough to be able to just create the UI by editing the xaml (although I'm still looking forward to a full featured editor).

JonnyPoet
December 14th, 2008, 03:16 AM
WPF can be supported in WinForms and vice versa.Great to hear as I havn't known this.


I find that Xaml is simple enough to be able to just create the UI by editing the xaml (although I'm still looking forward to a full featured editor).Look at this one http://channel9.msdn.com/shows/Continuum/XAMLPowerToys/

and here
http://karlshifflett.wordpress.com/xaml-power-toys/

I have added the XAML Power Toys to my VS 2008 some days ago and did a short look into it. It seems me that the editor is much more advanced then ever before using this add on. But I must confess I have nnever really used WPF in any of my projects. I'm not familar with HTTP stuff nor with XAML But I think when there is a good tool as it seems to be now, then I'll give it a try