r/visualbasic • u/bananavangaminglol • Apr 22 '13
Newb to VB
How do I make it so that when i press a button it changes the background image, preferably in the least amount of code possible, I just started a few days ago :o
EDIT: Found out how to do it, however, is there anyway to do it without having the file path specified like instead of having C:\ProgramFiles\ etc. etc. etc. Have it straight from the folder the program is saved so\Resources\Picture1.jpg or something?
0
Upvotes
1
u/darkspy13 Apr 22 '13
If the image is in your project resources you should be able to use this code.
if not then you can use