Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am unable to activate active x controls(.ocx) in WPF which are required for my project.I have installed successfully installed into registries which are working fine in Windows forms application.

I have tried by combining WPf and Windows form, but i'm unable to show that control in the required area of my application.. it is displaying in another window...
is there any way to display the windows form in the WPF???



Plzzz help me out in any of the above cases........



Thnx in advance
Posted
Updated 19-Aug-10 1:35am
v2

You need to use Winforms integration to make that work. Here's a link that might help.

http://blogs.msdn.com/b/mhendersblog/archive/2005/09/23/473065.aspx[^]

If that doesn't help enough, google this phrase:

"activex control in wpf"
 
Share this answer
 
hi,

Thanks for the help.... but it didn't work for me.... i just wanted to add an custom active x control in wpf which i can render it properly in Winforms..

The solution i got by googling out is that i can host active x controls in wpf through windows form host.. but it is also not workin...i mean the control is not getting activated to drag into my windows form host in WPF

can you tell me how should i proceed further...



Thanks in advance,
 
Share this answer
 
Comments
Christian Graus 20-Aug-10 5:55am    
Let's review. You said that John's advice did not help. Then you said you googled, and got the SAME advice John gave. You talk as if it was DIFFERENT advice, and say that also does not work. How can you have a 'project' when you've in the space of less than a day joined here, and asked three questions that are all very beginnerish ? I suggest if you're being paid for writing WPF code, you are a thief for taking their money. I suggest you need to learn some C# before you learn WPF, you need to learn to follow instructions, learn to assume that when everyone tells you something works and it doesn't for you, your own inexperience and inability are the problem, etc. You should also not push 'answer' to comment, see how I commented on your post instead of posting an answer, because I did not add to the answer to the question asked ?
vanitanikam 29-Dec-12 1:52am    
Hi,,
I also have same problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900