home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / The_messag2066355182007.psc / Form1.frm < prev    next >
Text File  |  2007-05-19  |  1KB  |  44 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Messagebox Example"
  4.    ClientHeight    =   3195
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   4680
  8.    BeginProperty Font 
  9.       Name            =   "System"
  10.       Size            =   9.75
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    ScaleHeight     =   3195
  19.    ScaleWidth      =   4680
  20.    StartUpPosition =   3  '┤░┐┌╚▒╩í
  21.    Begin VB.CommandButton Command1 
  22.       Caption         =   "Click Me"
  23.       Height          =   495
  24.       Left            =   1680
  25.       TabIndex        =   0
  26.       Top             =   2160
  27.       Width           =   1215
  28.    End
  29. End
  30. Attribute VB_Name = "Form1"
  31. Attribute VB_GlobalNameSpace = False
  32. Attribute VB_Creatable = False
  33. Attribute VB_PredeclaredId = True
  34. Attribute VB_Exposed = False
  35.  
  36. Private Sub Command1_Click()
  37.  
  38.   SetTimer hWnd, NV_CLOSEMSGBOX, 2000&, AddressOf TimerProc
  39.  
  40.   Call MessageBox(hWnd, "Delay 2000ms,it will be closed automaticly.", _
  41.       MSG_TITLE, MB_ICONQUESTION Or MB_TASKMODAL)
  42.  
  43. End Sub
  44.