简体   繁体   中英

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 folder 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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