title: How do I create a seekbar in C#\NAudio Music Player?
body: <p>I am new to both NAudio and C# and I managed to create a simple MP3 player where you can choose a file and play it. It also has a play/pause button. </p>
  
  <p>I would now like to add a seek bar but have no clue on how to do this. Also is it possible to have seekbar in waveform style?</p>
  
  <p>The openButton click Handler</p>
  
  <pre><code>private void openButton_Click(object sender, EventArgs e)
  {
      OpenFileDialog open = new OpenFileDialog();
      open.Filter = "Audio File|*.mp3;";
  
      if (open.ShowDialog() != DialogResult.OK) 
          return;
  
      CloseWaveOut();  // disposes the waveOutDevice and audiofilereader
      waveOutDevice = new WaveOut();
      audioFileReader = new AudioFileReader(open.FileName);
  
      waveOutDevice.Init(audioFileReader);
      waveOutDevice.Play();
  
      pauseButton.Enabled = true;            
  }
  </code></pre>