Reputation: 135
I have 2 forms. on the second form i have a track bar. Whenever that track bar changes it's value, I want form 1 to become transparent. My code.
opacitytrackBar1.ValueChanged += new EventHandler(opacitytrackBar1_ValueChanged);
but what is the code for setting form1's opacity? thanks!
Upvotes: 0
Views: 1221
Reputation: 6130
Check this sites:
Transparency Tutorial with C# - Part 3
Transparent forms (form opacity)
Regards
Upvotes: 1
Reputation: 2801
Are you after the .Opacity
property on the form object?
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.opacity(v=VS.80).aspx
Upvotes: 2