How to forward or revese the video by moving video TrackBar in Windows media player?


  • Hello everyone !

    As i am beginner and currently making Windows Media Player in c#. After a lot of try i am still unable to forward or reverse the video by moving trackbar.Kindly help me. 

    Here is the code of my simply moving trackbar with video duration.

    public void Trackbar_Movement(AxWMPLib.AxWindowsMediaPlayer move, TrackBar tb, Timer t, Label l)
                tb.Value = (int)move.Ctlcontrols.currentPosition;
                tb.Maximum = (int)move.currentMedia.duration;

    • Edited by Tanzeel23 Sunday, April 9, 2017 4:34 PM
    Sunday, April 9, 2017 4:32 PM

All replies

  • Check if this link can help you out.

    Mark Answered, if it solves your question and Vote if you found it helpful.
    Rohit Arora

    Monday, April 10, 2017 5:29 AM
  • In your link,the trackbar is by default of Windows media player...and i created my own.

    Anyway,Thank you. :)

    Monday, April 10, 2017 7:59 AM