473,385 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Managed usercontrol on a CProperpyPage

Hi,

What would it take to put a .NET usercontrol
(System.Windows.Forms.UserControl) on a CPropertyPage ??

I can expose the .NET usercontrol to MFC as a ActiveX component
(implementing nessecary interfaces and registering the .NET control in the
registry) and build a wrapper for this ActiveX in my MFC app. Then it should
be fairly easy to put the control on the page, right??

Is there some special initialization I must in my MFC app before using the
wrapped .NET ActiveX ??
I think not as it goes through COM, right ??

Kr. Soren


Aug 16 '06 #1
1 1114
If you are using VC 2005, you can use CWinFormsControl<Tfrom afxwinforms.h
to achieve that.

Marcus
"Soren S. Jorgensen" <no@spammail.comwrote in message
news:u7**************@TK2MSFTNGP06.phx.gbl...
Hi,

What would it take to put a .NET usercontrol
(System.Windows.Forms.UserControl) on a CPropertyPage ??

I can expose the .NET usercontrol to MFC as a ActiveX component
(implementing nessecary interfaces and registering the .NET control in the
registry) and build a wrapper for this ActiveX in my MFC app. Then it
should
be fairly easy to put the control on the page, right??

Is there some special initialization I must in my MFC app before using the
wrapped .NET ActiveX ??
I think not as it goes through COM, right ??

Kr. Soren


Aug 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Raed Sawalha | last post by:
Hi, I have a strange problem with a usercontrol on a page. The usercontrol dispalyes three categories (From a database) when the user clicks a category they see all the products in a shop for...
2
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation...
1
by: Brett | last post by:
I have developed a managed (VB.NET) usercontrol and have consumed it in VB6 with limited success. I'm not sure I'm going about it the correct way, so I wanted to try to get a consensus from...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
12
by: Joe | last post by:
Hello All: Do I have to use the LoadControl method of the Page to load a UserControl? I have a class which contains three methods (one public and two private). The class acts as a control...
9
by: Marcelo Cabrera | last post by:
Hi, I have a user control that in turn creates a bunch of webcontrols dynamically and handles the events these webcontrols raise. It used to work fine on ASP .Net 1.1 but when compiled on 2.0 it...
2
by: Filippo Bettinaglio | last post by:
Hi, I use, VS2005 C# I have a Windows Forms UserControl hosted within Internet Explorer According to MIcrosoft documentation: ...
1
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that...
6
by: MeowCow | last post by:
I have created a UserControl that encapsulates a third party data grid. My goal was to create my own DataSource and DataMember properties that forward the binding to the third party grid, then use...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.