none
How to control volume in WMP ?

    Question

  •  am currently making Windows Media Player in c#.

    and i have no idea how to Max aur Min volume control in it.

    The things i knew about volume control is here. But it didn't work unfortunately.

    Please guide me.

    Thanks in Advance.

         public void VolumeSettings(AxWMPLib.AxWindowsMediaPlayer vol , TrackBar tb )
            {
    
                tb.Maximum= vol.settings.volume++;
                tb.Minimum = vol.settings.volume--;
    
            }

    Tuesday, April 11, 2017 3:33 PM

All replies

  • BTW, you're talking about C# in VB forum...

    Volume Min :

    axWindowsMediaPlayer1.settings.volume = 0;

    Volume Max :

    axWindowsMediaPlayer1.settings.volume = 100;

    • Edited by Castorix31 Tuesday, April 11, 2017 3:53 PM
    Tuesday, April 11, 2017 3:52 PM
  • Hi,

    Thank you for posting MSDN forum.

    You could try method below:

    if (MidiAxWindowsMediaPlayer != null && VolumeTrackBar != null)
           MidiAxWindowsMediaPlayer.settings.volume = VolumeTrackBar.Value*10;
    

    Best Regards,

    Hart

    If your issue has been resolved, please remember to close your thread by marking useful posts as answer that can be helpful for other person with same issue.


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, April 21, 2017 6:33 AM