当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Properties.Resources the icon name does not appear in the intellisense

问题描述:

I am trying to make a thumbnail toolbar for which I need an icon. So I added the icon using the solution explorer in the resources folder. Now, when I do Properties.Resources the icon name does not appear.

Code can be found here:

Problem showing thumbnail toolbar in .net 3.5 form

网友答案:

You also need to add the icon to the Resources.resx file. Open it in Visual Studio and drag your icon into the Icons menu of the resx and it will become available.

网友答案:

As suggested by @fletcher you need to add the icon to Resources.resx file.

  • You find the Resources.resx file in the Solution Explorer -> YourProject -> Properties. Right-click and open either Properties or Resourses.resx

  • Right-click YourProject in the Solution Explorer and open Properties. You'll find a Resource-Tab on the project-page.

Note: Add your icon as Icon in the resource-editor.

Further info on Adding and Editing Resources.

分享给朋友:
您可能感兴趣的文章:
随机阅读: