How do you set the picture property of a picture box or an image box at run time?

I get the file path from commondialog then when i try to set the picture to filename, it doesn't work

Code:
  picture1.picture = filepathfromcdl
help needed