VERSION 5.00
Begin VB.Form frmMessage 
   Caption         =   "Сообщение"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton CmdMessage 
      Caption         =   "Сообщение"
      Height          =   1335
      Left            =   960
      TabIndex        =   1
      Top             =   480
      Width           =   2775
   End
   Begin VB.CommandButton CmdExit 
      Caption         =   "Exit"
      Height          =   495
      Left            =   1800
      TabIndex        =   0
      Top             =   2520
      Width           =   1215
   End
End
Attribute VB_Name = "frmMessage"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdExit_Click()
Dim Message As String
Dim ButtonasIcons As Integer
Dim title As String
Dim Response As String

Message = "Вы уверены, что хотите выйти?"
ButtonasIcons = vbYesNo + vbQuestion
title = "Сообщение программы Сообщение"
Response = MsgBox(Message, ButtonasIcons, title)
If Response = vbYes Then
End
End If

End Sub

Private Sub CmdMessage_Click()
Dim Message As String
Dim ButtonsandIcons As Integer
Dim title As String

Message = "Сообщение прсто так, для примера"
ButtonasIcons = vbOKOnly + vbExclamation
MsgBox Message, ButtonsandIcons, title
End Sub

