Images folder in WinForms application
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.
精彩评论