double a = Convert.ToDouble(textBox1.Text); //输入的数字从1-10 double b = a / 10; this.Opacity = b; 在代码里面这样写可以改变;
Opacity