gadget3302
Programmer
I am trying to change a form background by selecting the file from a filelist box. What i've done is save the file name into a string variable but it wont load the picture.
Private Sub File1_Click()
Dim drvpath As String
drvpath = Dir1.Path & "\" & File1.FileName
Form1.Picture = drvpath
End Sub
Very simple code. What am I doing wrong?
Thansk Brian
Private Sub File1_Click()
Dim drvpath As String
drvpath = Dir1.Path & "\" & File1.FileName
Form1.Picture = drvpath
End Sub
Very simple code. What am I doing wrong?
Thansk Brian