How do I embed the WPF I created in C# to VB.Net Forms? If I remember, the DLL should be added as reference in vb.net. I tried that and I tried to add tools in toolbox but I can't see the WPF I created in toolbox.
Printable View
How do I embed the WPF I created in C# to VB.Net Forms? If I remember, the DLL should be added as reference in vb.net. I tried that and I tried to add tools in toolbox but I can't see the WPF I created in toolbox.
You would need a reference to PresentationCore, System.Windows.Media and System.XAML. You could use the ElementHost tool inside the WPF section of your toolbox as well. You'd need to add the Imports to the above libraries as well
I already added as reference those you have said except System.Windows.Media. .
I can't find it. . I also have elementhost but I don't know how to use it. . Could you help me do it step by step?
I successfully added the WPF on VB.Net but I got an error.
Check the Image
http://i48.tinypic.com/2zpply9.png
Have you tried it without New ?