This is the answer to a follow-up question following the advice by John:
Handle the event
System.Windows.Forms.TrackBar.ValueChanged
(
not Click); use the event arguments parameter passed to your event handle to access the sender and read the value of its
int
property
System.Windows.Forms.TrackBar.Value
; let's say it's assigned to the variable
value
. Assign:
wmp.settings.volume = value
, in the body of this event handler.
See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.trackbar.aspx[
^].
—SA