开发者

C# 2 forms and opacity question

开发者 https://www.devze.com 2023-04-01 21:33 出处:网络
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.

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开发者_C百科 EventHandler(opacitytrackBar1_ValueChanged);

but what is the code for setting form1's opacity? thanks!


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


Check this sites:

Fading Windows Form in C#

Transparency Tutorial with C# - Part 3

Transparent forms (form opacity)

Regards

0

精彩评论

暂无评论...
验证码 换一张
取 消