home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Using Forms as Message Boxes"
- ClientHeight = 1935
- ClientLeft = 1980
- ClientTop = 2370
- ClientWidth = 6090
- Height = 2340
- Left = 1920
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 1935
- ScaleWidth = 6090
- Top = 2025
- Width = 6210
- Begin CommandButton Command2
- Caption = "Exit"
- Height = 375
- Left = 3240
- TabIndex = 1
- Top = 1200
- Width = 1095
- End
- Begin CommandButton Command1
- Caption = "Demo"
- Height = 375
- Left = 1800
- TabIndex = 0
- Top = 1200
- Width = 1095
- End
- Sub Command1_Click ()
- mousepointer = 11
- 'Creates Static Message
- form2.caption = "Program Routine Running--Please Be Patient..."
- form2.Show 'Insert *BEFORE LOOP OR ROUTINE*
- For i = 1 To 10000
- form2.Hide
- form2.caption = " " ' Include a space to keep give form size.
- form2.Show 'Insert *BEFORE LOOP*
- 'Below: Setting the caption flashes the form.
- For i = 1 To 25
- form2.caption = "Create a Flashing Message--Attracts Attention!"
- For r = 1 To 2500
- Next
- form2.Hide
- form2.caption = " "
- 'Below: Here you can increment anything you like.
- form2.Show
- For i = 1 To 25
- form2.caption = "Create a Flashing Counter: " + Str$(i)
- For r = 1 To 1500
- Next
- form2.Hide
- mousepointer = 1
- End Sub
- Sub Command2_Click ()
- End Sub
- Sub Form_Load ()
- 'The routine below is useful when you do a lot
- 'while a program is loading. Prevents panic
- 'for users. Use in Form_Load sub, naturally using
- 'your own commands in place of this loop.
- form2.caption = "Program Now Loading.....Wait..."
- form2.Show
- For i = 1 To 25000
- form2.Hide
- End Sub
-