home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / scary / scary.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-08  |  4.7 KB  |  166 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H000080FF&
  4.    Caption         =   "Scary Time"
  5.    ClientHeight    =   3120
  6.    ClientLeft      =   2535
  7.    ClientTop       =   2115
  8.    ClientWidth     =   4320
  9.    ControlBox      =   0   'False
  10.    FontBold        =   -1  'True
  11.    FontItalic      =   0   'False
  12.    FontName        =   "Arial"
  13.    FontSize        =   8.25
  14.    FontStrikethru  =   0   'False
  15.    FontUnderline   =   0   'False
  16.    Height          =   3525
  17.    Icon            =   SCARY.FRX:0000
  18.    Left            =   2475
  19.    LinkMode        =   1  'Source
  20.    LinkTopic       =   "Form1"
  21.    ScaleHeight     =   3120
  22.    ScaleWidth      =   4320
  23.    Top             =   1770
  24.    Width           =   4440
  25.    Begin Timer Timer1 
  26.       Interval        =   1000
  27.       Left            =   2760
  28.       Top             =   840
  29.    End
  30.    Begin PictureBox Picture1 
  31.       BackColor       =   &H000080FF&
  32.       BorderStyle     =   0  'None
  33.       ForeColor       =   &H000080FF&
  34.       Height          =   255
  35.       Left            =   0
  36.       ScaleHeight     =   255
  37.       ScaleWidth      =   9495
  38.       TabIndex        =   3
  39.       Top             =   -120
  40.       Width           =   9495
  41.    End
  42.    Begin Label Label2 
  43.       Alignment       =   2  'Center
  44.       BackColor       =   &H000080FF&
  45.       FontBold        =   -1  'True
  46.       FontItalic      =   0   'False
  47.       FontName        =   "Futura Md BT"
  48.       FontSize        =   30
  49.       FontStrikethru  =   0   'False
  50.       FontUnderline   =   0   'False
  51.       Height          =   735
  52.       Left            =   360
  53.       TabIndex        =   1
  54.       Top             =   1800
  55.       Width           =   3735
  56.    End
  57.    Begin Label Label1 
  58.       Alignment       =   2  'Center
  59.       BackColor       =   &H000080FF&
  60.       Caption         =   "Dial Time at 853-1212"
  61.       FontBold        =   -1  'True
  62.       FontItalic      =   0   'False
  63.       FontName        =   "Futura Md BT"
  64.       FontSize        =   30
  65.       FontStrikethru  =   0   'False
  66.       FontUnderline   =   0   'False
  67.       Height          =   1335
  68.       Left            =   120
  69.       TabIndex        =   0
  70.       Top             =   120
  71.       Visible         =   0   'False
  72.       Width           =   4170
  73.    End
  74.    Begin Label Label3 
  75.       Alignment       =   2  'Center
  76.       BackColor       =   &H000080FF&
  77.       Caption         =   "Happy Halloween"
  78.       FontBold        =   -1  'True
  79.       FontItalic      =   0   'False
  80.       FontName        =   "Futura Md BT"
  81.       FontSize        =   30
  82.       FontStrikethru  =   0   'False
  83.       FontUnderline   =   0   'False
  84.       Height          =   1695
  85.       Left            =   0
  86.       TabIndex        =   2
  87.       Top             =   120
  88.       Width           =   4215
  89.    End
  90.    Begin Menu SetOptions 
  91.       Caption         =   "&Options"
  92.       Visible         =   0   'False
  93.       Begin Menu SetClock 
  94.          Caption         =   "&Set The Clock"
  95.       End
  96.       Begin Menu ShowNum 
  97.          Caption         =   "&What's The Number?"
  98.       End
  99.       Begin Menu HideNum 
  100.          Caption         =   "&Can't See The clock!"
  101.          Visible         =   0   'False
  102.       End
  103.       Begin Menu AboutCom 
  104.          Caption         =   "&About The Author"
  105.       End
  106.       Begin Menu ByeCom 
  107.          Caption         =   "&Exit"
  108.       End
  109.    End
  110.    Begin Menu HelpCom 
  111.       Caption         =   "&Help"
  112.       Visible         =   0   'False
  113.    End
  114. Sub AboutCom_Click ()
  115. About
  116. End Sub
  117. Sub ByeCom_Click ()
  118. End Sub
  119. Sub HelpCom_Click ()
  120.              scary2.Show
  121.              form1.Hide
  122. SetOptions.visible = 0
  123. HelpCom.visible = 0
  124. End Sub
  125. Sub HideNum_Click ()
  126. label1.visible = 0
  127. label2.visible = -1
  128. label3.visible = -1
  129. ShowNum.visible = -1
  130. HideNum.visible = 0
  131. SetOptions.visible = 0
  132. HelpCom.visible = 0
  133. End Sub
  134. Sub Picture1_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  135. SetOptions.visible = -1
  136. HelpCom.visible = -1
  137. End Sub
  138. Sub Picture1_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  139. SetOptions.visible = -1
  140. HelpCom.visible = -1
  141. End Sub
  142. Sub SetClock_Click ()
  143. Msg$ = "I will Call up the Control Panel."
  144. MsgBox Msg$
  145. Y = Shell("control.exe", 1)
  146. SetOptions.visible = 0
  147. HelpCom.visible = 0
  148. End Sub
  149. Sub ShowNum_Click ()
  150. label1.visible = -1
  151. label2.visible = 0
  152. label3.visible = -0
  153. ShowNum.visible = 0
  154. HideNum.visible = -1
  155. SetOptions.visible = 0
  156. HelpCom.visible = 0
  157. End Sub
  158. Sub Timer1_Timer ()
  159. Dim MyTime As String
  160. Dim Hours As Integer
  161. MyTime = Time$
  162. Hours = Val(MyTime)
  163. If Hours > 12 Then Mid$(MyTime, 1, 2) = Str$(Hours - 12)
  164. label2.caption = MyTime
  165. End Sub
  166.