On my previous post, "Customized Message Box" I showed my own customized message box with a simple message and no animations, in this post I added some tweaks and of course some fixes on the bugs of my previous versions. This is just so simple and I hope you like it.
Fade In and Out Effect
In fade in and out effect, I added timers for Fade In and Fade Out and set form's opacity to 0. In run time, "myLoc" integer variable gets the form current x location on the screen and subtract 220 (by default, the form loads in the center screen). The fade in timer will loop until "Me.Opacity = 1", which means the transparency of the form is 100% or 1 and the form's location will add by 20 "myLoc += 20" until the form's opacity becomes 1 then the timer will be disabled, same with the fade out timer.
Audio
I added some twists in my code, as you can see the line, My.Computer.Audio.Play(My.Resources.critical1, AudioPlayMode.Background), that means that the audio will play on background and the audio source is on my Resources.
I hope you like what I've got and have a nice and good day!
You can download the DLLhere.
You can download the DLLhere.