I've got this programme that plays sounds. I have an integer that i have to assign the value of this.adio.Duration;

Audio adio;
Video vdeo;


VB Code:
  1. int second;
  2.    int total;
  3.    total = this.adio.Duration;
  4.    trackBar1.Maximum = this.adio.Duration;
  5.    trackBar1.Value = total;
  6.    lblCurrentduration.Text = total.ToString();
  7.    trackBar1.Enabled = true;
  8.    
  9.    if (trackBar1.Value == trackBar1.Maximum) {
  10.      adio.Stop();
  11.      play();
  12.    }
  13. fix: ;

how can i change the adio.Duration to an integer.