vb.net - MediaPlayer.MediaPlayer: How do I use the Volume property? -
the volume property mediaplayer.mediaplayer
confusing me. googled definition , found this think right class. says volume
property double
excepts number between 0 , 1, , it's default 0.5. however, when set 0.5 or other number within 0 , 1, says not fall within expected range.
here how defined , how tried adjust volume. have event mouseup
because not valuechanged
or scroll
work properly. tips on appreciated.
dim player1 mediaplayer.mediaplayer = new mediaplayer.mediaplayer private sub sndmasterslider_mouseup(sender object, e eventargs) handles sndmasterslider.mouseup player1.volume = sndmasterslider.value / 100 debug.print(player1.volume) end sub
Comments
Post a Comment