Question:
How to display the current volume percentage (40%) or volume indicator (40/100) in the Label
? Below is the code of the component itself and the code of the component in the class.
private void xvolume_Scroll(object sender, ScrollEventArgs e)
{
BassLike.SetVolumeToStream(BassLike.Stream, xvolume.Value);
}
public static void SetVolumeToStream(int stream, int vol)
{
Volume = vol;
Bass.BASS_ChannelSetAttribute(stream, BASSAttribute.BASS_ATTRIB_VOL, Volume / 100F);
}
Answer:
Most likely, make an event for changing the volume value and, when the event is called, write this value to Label.Text.