Visual Studio Toolbox import problem - inconsistent across two solutions with identical configs.

Bryan Bentz 1 Reputation point
2021-01-15T16:59:06.707+00:00

I'm using VS 2017, vb.net. I have 2 projects, both .Net 4.6.1.

In one of them I can bring in and use the Windows Media Control.

In the other, when I try to do it, I see a message "The following controls were successfully added to the toolbox but are not enabled in the active designer:" with Windows Media Player listed.

Since the environments (.NET version, etc.) are identical, I don't see what the problem is, or how to fix it. Has anyone seen this before? Is there any internal log or such that would let me track down the specific problem?

(The solution where this works I broke out to test the video side of things, with the intent of getting it right before putting it back into the main system.)

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,690 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Abdulhakim M. Elrhumi 351 Reputation points
    2021-01-15T19:25:15.487+00:00

    Hi
    Add reference Windows Media Control after
    successfully added to the toolbox
    save project and recompile it .
    open your the active designer and add Control press F7 to view code and use prop control from code.

    Best Regards.
    Please remember to mark the replies as answers if they help.

    0 comments No comments

  2. Tianyu Sun-MSFT 27,811 Reputation points Microsoft Vendor
    2021-01-18T06:39:00.1+00:00

    Hi @Bryan Bentz ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    What type of project do you use(Winform, UWP or WPF…)? Normally, this error will appear, if there are some compatibility issues with the component(Windows Media Control) and the designer(based on the project type you use).

    So, if you create a new Windows Forms App(.NET Framework) project(I assume you use WinForm project template), will this issue disappear?

    I suggest you check following aspect again:

    1). Follow the steps from corresponding documents to import the component, for example, if you use Winform project, check if you did all steps that this official document: Using the Windows Media Player Control with Microsoft Visual Studio guides.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments