VB.NET also implements a faint form

xiaoxiao2021-03-06  17

The form has an Opacity property, and it can realize the faint appearance of the form ~

First create a form, set its Opacity property to 0%

Use a Timer component to define a window-level variable DIM i as integer

The Timer China code is as follows:

If me.opacity = 1 Timer1.enabled = false else me.opacity = (i * 10) / 100 i = i 1 end if

Timer's enabled can realize a faint form, it is simple ~

In fact, I am still an initiator, but I want to write something here. Always think that my method is not very formal, if you have a better way, please contact me ~

Thank you ~ My E-mail: unid_w@126.com

转载请注明原文地址:https://www.9cbs.com/read-41451.html

New Post(0)