Quote:
Dim windowHelper = New Form
By replacing
New WindowInteropHelper(Me)
with
New Form
, you've changed the meaning of the code. The blur effect will now be applied to that new form, which is never shown, rather than the current form.
Remove that line, and pass the current form's
Handle
to the
SetWindowCompositionAttribute
method:
SetWindowCompositionAttribute(Me.Handle, data)