Home » Category » Microsoft Visual Basic

Microsoft Visual Basic: Zoom out effect

112| Sat, 10 Nov 2007 23:43:00 GMT| anonymous| Comments (5)
[Originally posted by Raghu Ram.G]
When i load my form.. can i load it with a zoom out effect? Plz get me the code.
Regards
Ram.g

Keywords & Tags: zoom, out, effect, microsoft, visual basic, vb

URL: http://programmerbase.com/visual-basic/560764/
 
«« Prev - Next »» 5 helpful answers below.
[Originally posted by blaison]

Declare this function in the Declaration section of the form/module:
Private Declare Function AnimateWindow Lib "user32" (ByVal hwnd As Long, ByVal dwTime As Long, ByVal dwFlags As Long) As Boolean

In Form Load event call this function:
AnimateWindow Me.hwnd, 900, &H10

this will work, check it out.

anonymous | Sun, 11 Nov 2007 18:50:00 GMT |

[Originally posted by Raghu Ram.G]

Thanx it works..But i'm not gettin a clear form i.e i'm gettin a dissorted form.Background of the form is not clear.

anonymous | Sun, 11 Nov 2007 18:51:00 GMT |

[Originally posted by blaison]

Well your question is not that much clear but i think this would work:
Try out by changing the display time less than 900 (second parameter of the AnimateWindow Function)
OR
In the Form Load event write the following statment after the AnimateWindow Function :
Me.Print ""

Hope this would help your problem. Let me know if it works.

anonymous | Sun, 11 Nov 2007 18:52:00 GMT |

[Originally posted by Raghu Ram.G]

Well.. i tried every possible way..but when then zoom out effect is happening the background gets dissorted.I don't know how to explain.. just imagine when there are too many colors appearin on your monitor at the same time.

Plz solve my problem

thanx
Regards
Ram.g

anonymous | Sun, 11 Nov 2007 18:53:00 GMT |

[Originally posted by ARPRINCE]

Well I tried this one too. Looks really cool except for the fact that a distorted form is displayed after the animation. Can't figure out why though.

Anyway, you could try ME.REFRESH after the animate code to get the final undistorted form.

But it doesn't really look good when a user sees a distorted animation even if the final presentation of the form isn't.

There must be a work around or we might have missed something.

Hmmm....interesting.

anonymous | Sun, 11 Nov 2007 18:54:00 GMT |

Microsoft Visual Basic Hot Answers

Microsoft Visual Basic New questions

Microsoft Visual Basic Related Categories