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
Roll Down Form using timer
Author:
Robson Mukubvu
E-mail:
Click to e-mail author
Submitted:
11/1/2003
Version:
VB6
Compatibility:
VB6
Category:
Controls
Views:
13470
Roll down a form using a timer control 'All you need is a form and a timer control nameed timer1.
Declarations:
' you need to put 2 listboxes on a form ' name them list1 and list2 ' a drivelistbox,filelistbox,dirlistbox ' a combobox called combo1 ' a commandbutton command1
Code:
Dim k as integer Private Sub Form_Load() Form1.Height = 5 Timer1.Interval=100 Timer1.Enabled=True End Sub Private Sub Timer1_Timer() k = k + 200 Form1.Height = k If Form1.Height > 6675 Then Form1.Height = 6675 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