开发者

Images folder in WinForms application

开发者 https://www.devze.com 2023-03-14 16:02 出处:网络
What\'s the way to add custom images/icons in WinForms application. I added a folder (right-click project and add new folder) named it then as my images fol开发者_如何学Cder and I would like to use th

What's the way to add custom images/icons in WinForms application. I added a folder (right-click project and add new folder) named it then as my images fol开发者_如何学Cder and I would like to use this folder as my main images folder.

I don't see any option to use my 'images' folder in Visual Studio after dropping the Picture Box control.


Add the image as an embedded resource. You can the set the PictureBox's Image property to the resource via the property editor or at runtime by accessing the Properties.Resources object. The images will be compiled directly into your executable, you just need to add them to your project.

0

精彩评论

暂无评论...
验证码 换一张
取 消