title: VB.net Problems with Openfiledialog
body: <p>I'm making this music player thing and I need help with some coding. I want my program to play a certain file when Checkbox1 is checked. I'm using OpenFileDialog but i'm not sure that's the right thing to do. I can't get it to work. Here's my code:</p>
  
  <pre><code>     If CheckBox1.Checked = True Then
          OpenFileDialog1.OpenFile()
          AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName
          AxWindowsMediaPlayer1.Ctlcontrols.play()
        ElseIf CheckBox1.Checked = False Then
          AxWindowsMediaPlayer1.Ctlcontrols.stop()
       End If
  </code></pre>
  
  <p>Can someone please help me?</p>