Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Assembly myAssembly = this.GetType().Assembly;
  2.  
  3. ResourceManager myManager = new ResourceManager("Properties.Resources", myAssembly);
  4.  
  5. string imgResource = string.Format("imagen{0}.jpg", modelo);
  6. pictureBoxAuto.BackgroundImage = (Image)myManager.GetObject(imgResource);
  7.  
  8. using System.Reflection;
  9. using System.Resources;
  10. using System.Drawing;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement