tags:

views:

127

answers:

2

I am in the process of creating a custom control in C# for business process. As a part of it, I need to create what looks like a header on a list view.

I've done this in the past using Visual c++ (6.0 :blush:). I have not found a way to do it in C# (2.0). Does anyone have any suggestions or links?

Thanks

A: 

There are lots of resources for creating custom resources out there: http://www.google.com/search?rlz=1C1CHMB_enUS318US318&sourceid=chrome&ie=UTF-8&q=C%23+custom+control

I recommend starting at MSDN, and branching out from there if you need more examples.

onedozenbagels
+1  A: 

As someone who has done just this, I did not find it easy. My eventual solution and those I found on the web, was to wrap the Win32 SysHeader32 window in C#. (Wasn't easy.) Be familiar with Win32, and P/Invoke. This was one of the sites that I found in my searches. Here's another. (SysHeader32 C# control, etc., in Google turns up some results.)

Thanatos
Now if I can just add the system renderer to the second one!
Brad Bruce
Application.EnableVisualStyles();was missing from the demo. NOW it's just about perfect!
Brad Bruce