Is it possible to make animations, like the transitions generated by Bunifu, with form in the VB.NET language?
Previously related to the link below with standard Controls
LINK
Code in form1
Public Class Form1
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
Dim f2 As New Form2()
f2.Animate(AnimationMode.OpenScale, 200)
f2.TopLevel = False
End Sub
End Class
As mentioned before, if you want to animate a Form by scaling it, you have to turn it into a non-top-level window and add it to the Controls collection of a container. Of course, before you call the
Animate()
method. You cannot animate a top-level window like that, unless you’re willing to generate graphics on the current Screen’s DC. That can be done, as also mentioned (last paragraph here). Or hide it and replace it with a per-pixel-alpha Form, scaling its contentYou can also use one of the other effects that apply to top-level windows, as the
Blend
effect (AW_BLEND
orAW_BLEND
+AW_HIDE
). Give it a shot@Jimi , Thank you for your response. Can you answer as an answer so that I can understand.