Making transparent formalways in the uppermost form

xiaoxiao2021-03-06  81

1, easy to make transparent form

VB.NET can easily produce a transparent form: We can set the opacity property to a value between 0.0 (complete transparent) and 1.0 (completely opaque) in the "Properties" window of the Form. a:

DIM FRM As FRMTRANS = New FRMTRANS ()

FRM.OPACITY = 0.5

frm.showdialog ()

2, easy to make a form that is always on the top layer

In VB6, you have to make a form that is always on the top-level form. We can only help a headache API function. However, in .NET, we can achieve the same effect as long as we simply set the topMost attribute of the form! E.g:

DIM FRM As FRMTOPMOST = New FRMTOPMOST ()

frm.topmost = true

frm.show ()

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

New Post(0)