Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Assembly myAssembly = this.GetType().Assembly;
- ResourceManager myManager = new ResourceManager("Properties.Resources", myAssembly);
- string imgResource = string.Format("imagen{0}.jpg", modelo);
- pictureBoxAuto.BackgroundImage = (Image)myManager.GetObject(imgResource);
- using System.Reflection;
- using System.Resources;
- using System.Drawing;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement