if opendialog1.execute then mediaplayer1.filename:=(opendialog1.filename); mediaplayer1.open; mediaplayer1.display?:=panel1 mediaplayer1.play;