Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. C# VS 2008 3.5 Controlling volume with TrackBar

C# VS 2008 3.5 Controlling volume with TrackBar

Scheduled Pinned Locked Moved C#
csharpvisual-studiotutorialquestion
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wheels012
    wrote on last edited by
    #1

    Good morning. I have an app which uses the Windows Media Player control, but I am using customized buttons instead of the player controls. I wan to increase and decrease the volume with a TrackBar control, but I am not sure how to access the volumn properties of the axWindowsMediaPlayer1.currentMedia. Any suggestions? Thnak you, WHEELS

    C 1 Reply Last reply
    0
    • W Wheels012

      Good morning. I have an app which uses the Windows Media Player control, but I am using customized buttons instead of the player controls. I wan to increase and decrease the volume with a TrackBar control, but I am not sure how to access the volumn properties of the axWindowsMediaPlayer1.currentMedia. Any suggestions? Thnak you, WHEELS

      C Offline
      C Offline
      Covean
      wrote on last edited by
      #2

      You can read and write the volume by accessing the volume property of the media player settings. axWindowsMediaPlayer1.settings.volume = (range 0 - 100) Hope that helps (not tested)!

      Greetings Covean

      W 1 Reply Last reply
      0
      • C Covean

        You can read and write the volume by accessing the volume property of the media player settings. axWindowsMediaPlayer1.settings.volume = (range 0 - 100) Hope that helps (not tested)!

        Greetings Covean

        W Offline
        W Offline
        Wheels012
        wrote on last edited by
        #3

        Exactly what I needed. Thank you, WHEELS

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups