Coding image change

ibanezFreak87

Member
Joined
Mar 6, 2006
Messages
8
Programming Experience
Beginner
How would one make a button_Click make the background image change to a different jpeg?
 
if the full path is not specified, it'll look to the same folder as the executable (or dll) that's looking for it
That is not true, if will look in current folder, which initially is applications startup folder, but current folder may change during application runtime. Usually Application.StartupPath will give you the path relative to executable. Explore this in combination with the My.Computer.FileSystem.CurrentDirectory (this is .Net 2.0, for Net 1.1 I think it's CurDir/ChDir/ChDrive functions)
 
Back
Top