Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Scrolling effect for Forms
Author:
Daniel Ionescu
E-mail:
Click to e-mail author
Submitted:
7/27/2004
Version:
VB6
Compatibility:
VB6
Category:
Forms
Views:
12694
This is an example on how to apply very simple scrolling effects to Forms.
Declarations:
'Current height of the Form Dim hi As Integer 'Maximum height of the Form Dim max As Integer
Code:
'You have to place a Timer control on the Form and name 'it "Timer_Efects" Private Sub Form_Load() hi = 10 max=6000 Timer_Efects.Enabled = True End Sub Private Sub Timer_Efects_Timer() hi = hi + 300 Me.Height = hi Me.Refresh If hi > max Then frmShowAutomaticUpload.Hide frmShowAutomaticUpload.Visible = False Timer_Efecte.Enabled = False End If End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement