|
|
|
Click here to copy the following block | Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub ExplodeForm(frm As Form, Optional ByVal lNumSteps As Long = 25, _ Optional ByVal lStepDuration As Long) Dim sngLeft As Single, sngTop As Single Dim sngHeight As Single, sngWidth As Single Dim sngNewHeight As Single, sngNewWidth As Single Dim sngHeightStep As Single, sngWidthStep As Single Dim iStep As Long On Error Resume Next If frm.WindowState <> vbNormal Then Exit Sub sngLeft = frm.Left sngTop = frm.Top sngHeight = frm.Height sngWidth = frm.Width sngHeightStep = sngHeight / lNumSteps sngWidthStep = sngWidth / lNumSteps For iStep = 1 To lNumSteps sngNewHeight = sngNewHeight + sngHeightStep sngNewWidth = sngNewWidth + sngWidthStep frm.Move sngLeft + (sngWidth - sngNewWidth) / 2, _ sngTop + (sngHeight - sngNewHeight) / 2, sngNewWidth, sngNewHeight frm.Visible = True frm.Refresh Sleep lStepDuration Next frm.Move sngLeft, sngTop, sngWidth, sngHeight End Sub |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|