我目前正在尝试在ComboBox
SelectedIndexChanged
事件期间更改选项卡的背景图像时进行淡化过渡。但是,我在选项卡的背景图像中找不到不透明度属性。对我有什么建议吗?
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.SelectedIndex == 1)
{
// Some opacity value changing at here
string pathDesktop = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
string imagePath1 = pathDesktop + "\\App Background\\";
tabPage1.BackgroundImage = Image.FromFile(imagePath1 + "saadsda.jpg");
}
}