Solved

MFC activeX for C-sharp

Posted on 2004-08-14
2
160 Views
Last Modified: 2013-11-25
Hello

I am making a Csharp app. I am really fed up with the list view .net provides. It doesn't let you owner draw the items. and if you over ride the OnPaint event your stuck drawing the whole ting from scratch. I was think of created an ActiveX control in MFC and use that in my C# forms. I want to create a ListView that has checkboxes, displays yellow when item is selected and has icons. I wonder if activeX would be a good solution for this.

What about mixed C++, What would you recoomend as a good solution?
0
Comment
Question by:auk_ie
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 11803323
This is possible, but this is a lot of work and you need to be very good in COM. I think it is better to use some existing pure .NET control and modify it if necessary. Take a look at this sample:

http://www.codeproject.com/cs/miscctrl/aa_listview.asp
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
String manipulation in Visual Basic 7 73
x-bar in Google Sheets 2 70
Message not shown 5 67
.NET tools for adding thread safety to a web app? 3 48
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question