C# WPF on VB.Net Form
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: C# WPF on VB.Net Form

  1. #1
    Join Date
    Aug 2012
    Posts
    16

    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.

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,099

    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

  3. #3
    Join Date
    Aug 2012
    Posts
    16

    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?

  4. #4
    Join Date
    Aug 2012
    Posts
    16

    Re: C# WPF on VB.Net Form

    I successfully added the WPF on VB.Net but I got an error.
    Check the Image

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,099

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center