Я хочу присвоить десятичную переменную trans двойной переменной this.Opacity.
decimal trans = trackBar1.Value / 5000;
this.Opacity = trans;
Когда я создаю приложение, оно выдает следующую ошибку:
Cannot implicitly convert type decimal to double
Подробнее здесь: https://stackoverflow.com/questions/4/h ... ouble-in-c