⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vmsgbox.frm

📁 进销存管理(ADO+Acess),适合初学者使用!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form vmsgbox 
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   1650
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   4995
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "vmsgbox.frx":0000
   ScaleHeight     =   110
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   333
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.Label cancel_a 
      BackStyle       =   0  'Transparent
      Height          =   330
      Left            =   3000
      TabIndex        =   4
      Top             =   1125
      Width           =   885
   End
   Begin VB.Shape cancel_c 
      BorderColor     =   &H00C0C0C0&
      FillColor       =   &H00C0C0C0&
      Height          =   330
      Left            =   3000
      Top             =   1125
      Width           =   885
   End
   Begin VB.Label cancel_b 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "取 消"
      ForeColor       =   &H00404040&
      Height          =   180
      Left            =   3225
      TabIndex        =   3
      Top             =   1200
      Width           =   495
   End
   Begin VB.Label confirm_a 
      BackStyle       =   0  'Transparent
      Height          =   330
      Left            =   2040
      TabIndex        =   2
      Top             =   1125
      Width           =   885
   End
   Begin VB.Label confim_b 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "确 定"
      ForeColor       =   &H00404040&
      Height          =   180
      Left            =   2265
      TabIndex        =   1
      Top             =   1200
      Width           =   495
   End
   Begin VB.Shape confim_c 
      BorderColor     =   &H00C0C0C0&
      FillColor       =   &H00C0C0C0&
      Height          =   330
      Left            =   2040
      Top             =   1125
      Width           =   885
   End
   Begin VB.Label msginfo 
      BackStyle       =   0  'Transparent
      ForeColor       =   &H00404040&
      Height          =   615
      Left            =   1200
      TabIndex        =   0
      Top             =   480
      Width           =   3495
      WordWrap        =   -1  'True
   End
   Begin VB.Image msgpic 
      Height          =   480
      Left            =   360
      Picture         =   "vmsgbox.frx":1ADF2
      Top             =   480
      Width           =   480
   End
End
Attribute VB_Name = "vmsgbox"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cancel_a_Click()
 '按下了取消键
  ReMsgBox = 1
  Unload Me
End Sub

Private Sub cancel_a_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
 '取消键颜色变换
  cancel_c.BorderColor = &H808080
End Sub

Private Sub cancel_a_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
 '取消键颜色变换
  cancel_c.BorderColor = &HC0C0C0
End Sub

Private Sub confirm_a_Click()
 '按下啦确定键
  ReMsgBox = 0
  Unload Me
  
End Sub

Private Sub confirm_a_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
 '确定键颜色变换
  confim_c.BorderColor = &H808080
End Sub

Private Sub confirm_a_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
 '确定键颜色变换
  confim_c.BorderColor = &HC0C0C0
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)
  If KeyAscii = 13 Then
    confirm_a_Click
  End If
End Sub

Private Sub Form_Load()
 '窗口居中
  CenterForm Me
End Sub

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  ReleaseCapture
  SendMessage Me.hwnd, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0
End Sub


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -