Results 1 to 4 of 4

Thread: Add wpf usercontrol to vb.net form

  1. #1
    Iskoban is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    May 2009
    Posts
    2
    Reputation
    0

    Add wpf usercontrol to vb.net form

    Hi there,

    I want to add a wpf usercontrol in an vb.net Tabpage. Is this possible?

    Iskoban

  2. #2
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    13,315
    Reputation
    1991
    In your Toolbox there is a section called "WPF Interoperability", it has a component called "ElementHost". ElementHost Class (System.Windows.Forms.Integration)

  3. #3
    Iskoban is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    May 2009
    Posts
    2
    Reputation
    0
    Thanks for your reaction John.

    I've found the Elementhost in the toolbox, but it is disabled.

    I have a activeX control with serveral tabpages. In one of these tabpages i want to put a WPF window in it.

  4. #4
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    13,315
    Reputation
    1991
    The ElementHost component is only available in Windows Forms projects as you asked about, including for Forms UI in class libraries.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO