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
Cool Sliding Form on Open
Author:
Booooze
E-mail:
Click to e-mail author
Submitted:
1/21/2004
Version:
VB6
Compatibility:
VB6
Category:
Forms
Views:
21506
Little trick I fell upon while messing around... quite cool and very easy to modify! Slides your forms open!
Declarations:
Dim nfile As Integer Dim conx as Integer
Code:
' add all your controls and make the form as big as 'you want and it will scroll when opened. Private Sub Form_Load() Form1.Width = 1 Timer1.Interval = 1 Timer1.Enabled = True End Sub Private Sub Timer1_Timer() Form1.Width = Form1.Width + 100 If Form1.Width >= 8000 Then ' easy to change width Timer1.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