[RESOLVED] Setting a file path for a Image folder in my game.
This is my code for it. Im trying to Load the pic in a picBox by loading it from the application path and "\bin" and the picList.txt has to do with what gender the person choses. This is a ComboBox that im trying to apply this code to.
Private Sub picList_Change()
picBox.Image = LoadPicture(App.Path & "\images\avatars\" & picList.Text & ".jpg")
End Sub
Can anyone tell me how i would write that to make it work in VB.net?
Re: Setting a file path for a Image folder in my game.
There's a bunch of ways you could put an image from a file into a picture box - any of these:
Code:
pBox.Image = Image.FromFile(filepath)
pBox.Image = New Bitmap(filepath)
pBox.ImageLocation = filepath
pBox.Load(filepath)
pBox.LoadAsync(filepath)
BB