private void Form1_MouseWheel(object sender, MouseEventArgs e) { if (e.Delta < 0) { if (colorSlider2.Value >= colorSlider2.MouseWheelBarPartitions) { colorSlider2.Value -= colorSlider2.MouseWheelBarPartitions; } else { colorSlider2.Value = colorSlider2.Minimum; } } else { if (colorSlider2.Value <= colorSlider2.Maximum - colorSlider2.MouseWheelBarPartitions) { colorSlider2.Value += colorSlider2.MouseWheelBarPartitions; } else { colorSlider2.Value = colorSlider2.Maximum; } } CommonInterface.SetVolume(); }
private void colorSlider2_Scroll(object sender, ScrollEventArgs e) { CommonInterface.SetVolume(); }