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?
Me.BackgroundImage = image.fromfile(the file path to the image you want to display)
me.backgroundimage = imagelist.images(the index of the image you want to rtrieve)
dim Bmp as new bitmap = system.reflection.assembly.getexecutingassembly.
getmanifestresourcestream(filename)
me.backgroundimage = bmp
[SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].BackgroundImage = Image.FromFile(C:\kosherdelight.jpeg)[/SIZE]
[SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].BackgroundImage = Image.FromFile("C:\kosherdelight.jpeg")[/SIZE]
Dim ofd As New OpenFileDialog
With ofd
.Filter = "Jpeg (*.jpg)|*.jpg|GIF (*.gif)|*.gif"
.FileName = "C:\"
.Title = "Locate Image"
If .ShowDialog() <> DialogResult.Cancel Then Me.BackgroundImage = Image.FromFile(.FileName)
End With