Je veux utiliser a Track-Barpour changer Forml'opacité de a.
Voici mon code:
decimal trans = trackBar1.Value / 5000;
this.Opacity = trans;
Lorsque je crée l'application, cela donne l'erreur suivante:
Impossible de convertir implicitement le type
decimalendouble
J'ai essayé d'utiliser transet doublepuis Controlça ne marche pas. Ce code a bien fonctionné dans un ancien projet VB.NET.