C#InitializeComponent错误 [英] C# InitializeComponent error

查看:847
本文介绍了C#InitializeComponent错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,我一直在这里得到一个区域

For some reason I keep getting an area in here

public Form1()
{
  InitializeComponent();
}



并且InitializeComponent();中的错误是:

Could not load file or assembly ''WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. The system cannot find the file specified.

谁能帮我解决这个问题,idk我怎么得到这个错误



and the error in InitializeComponent(); is:

Could not load file or assembly ''WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. The system cannot find the file specified.

Can anyone help me fix this, idk how i got this error

推荐答案

您在表单上使用的一个或多个组件需要引用某种称为WMPLib的库.

右键单击您的项目,然后选择添加引用",选择浏览"选项卡,然后选择浏览"按钮.指向WMPLib库以添加引用.

你好走!

玩得开心,

爱德华
One or more components you have used on your form needs a reference to some kind of library called WMPLib.

Right click your project and choose ''Add Reference'', select the ''Browse'' tab and then the ''Browse'' button. Point to the WMPLib library to add the reference.

You''re good to go!

Have fun,

Eduard


这篇关于C#InitializeComponent错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆