I want to disable the form fade-in effect for a window. I think I found the right function
_
Private Sh
What works for me is
If Environment.OSVersion.Version.Major >= 6 Then
DwmSetWindowAttribute(Me.Handle, DWMWINDOWATTRIBUTE.DWMWA_TRANSITIONS_FORCEDISABLED, 1, 4)
End If
But that is just a guess. I am not sure if "1" stands for YES, and I am not sure if the length 4 is correct under all conditions. Having this confirmed would be great. Thank you!