Someone good with Form effects
I have a form that is full screen and borderless. What im trying to achieve is the surround of the form shrinking while keeping the image static in the middle until it disappears in a small line in the centre of the screen. My problem is that in reducing the width/height/left/top positions the image moves diagonally down the screen as it gets smaller. Is there a way to keep the image statuc while its surrounding edges are reduced?
Sample code Im using is:
VB Code:
Private Sub Timer2_Timer()
If Startup.Height > 89 Then
Startup.Height = Startup.Height - 90
Startup.Top = Startup.Top + 45
'Startup.Left = Startup.Left + 45
Startup.Width = Startup.Width - 90
Endif
To test it you just need to stretch a form as far as it will go right and down til it wont expand any more then give it a picture of 1024x768 resolution and put a timer event on it called Timer2 and set the interval to 1 and enable it
Thanks for any asistance