I'm trying to change a Form's opacity automatically before loading. I am using built in Settings function to save the value what opacity the window should have. The problem is, when I'm debugging my application, it all works well, when I compile it and try to open the executable, the window just dissapears... I don't get any errors.
This is how I'm trying to do it:
First there is a value in settings called opacity (int) from 0-100
private void Form1_Load(object sender, EventArgs e)
{
this.Opacity = WindowsFormsApplication1.Properties.Settings.Default.opacity * 0.01;
}