-
September 20th, 2012, 07:52 AM
#1
C# WPF on VB.Net Form
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.
-
September 21st, 2012, 08:42 AM
#2
Re: C# WPF on VB.Net Form
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
-
October 9th, 2012, 01:08 PM
#3
Re: C# WPF on VB.Net Form
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?
-
October 10th, 2012, 12:03 AM
#4
Re: C# WPF on VB.Net Form
I successfully added the WPF on VB.Net but I got an error.
Check the Image
-
October 10th, 2012, 01:04 AM
#5
Re: C# WPF on VB.Net Form
Have you tried it without New ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|