简体   繁体   English

如何在 Visual Studio 中加载图像?

[英]How I can load an image in Visual Studio?

I'm new at this.我是新手。

I'm trying to create a landing page, when I add the image it just won't show up.我正在尝试创建一个登陆页面,当我添加图像时它不会显示。

Is it because I'm not locating it correctly?是因为我没有正确定位吗? If so, how should I do it correctly?如果是这样,我应该如何正确执行?

Or what could the problem be?或者可能是什么问题?

Thanks in advance提前致谢

代码

Procedure程序

  1. Using Windows Explorer, place the custom image file in the Images directory of the Visual Studio project.使用 Windows 资源管理器,将自定义图像文件放在 Visual Studio 项目的图像目录中。
  2. In Visual Studio, open the project's Solution Explorer browser.在 Visual Studio 中,打开项目的解决方案资源管理器浏览器。
  3. Right-click the images folder and select Add > Add Existing Item.右键单击图像文件夹并选择添加 > 添加现有项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM