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

📄 frmphotomenu.frm

📁 学籍管理系统是一个非常通用的信息管理系统。很多中小学都需要自己的学籍管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form PhotoMenu 
   BackColor       =   &H00C0C0FF&
   BorderStyle     =   1  'Fixed Single
   ClientHeight    =   930
   ClientLeft      =   15
   ClientTop       =   15
   ClientWidth     =   2655
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   930
   ScaleWidth      =   2655
   StartUpPosition =   3  '窗口缺省
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   1680
      Top             =   0
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackColor       =   &H00C0C0FF&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "设置照片"
      ForeColor       =   &H00C00000&
      Height          =   240
      Left            =   615
      MouseIcon       =   "FrmPhotoMenu.frx":0000
      TabIndex        =   1
      Top             =   135
      Width           =   780
   End
   Begin VB.Line Line1 
      X1              =   0
      X2              =   2640
      Y1              =   480
      Y2              =   480
   End
   Begin VB.Line Line2 
      BorderColor     =   &H0080C0FF&
      X1              =   0
      X2              =   2640
      Y1              =   495
      Y2              =   495
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackColor       =   &H00C0C0FF&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "删除照片"
      ForeColor       =   &H00C00000&
      Height          =   240
      Left            =   615
      MouseIcon       =   "FrmPhotoMenu.frx":030A
      TabIndex        =   0
      Top             =   615
      Width           =   780
   End
End
Attribute VB_Name = "PhotoMenu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Activate()
  For e = 30 To 2610 Step 15
    Width = e
  Next e
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  Label2.FontBold = False
  Label2.ForeColor = RGB(0, 0, 0)
  
  Label1.FontBold = False
  Label1.ForeColor = RGB(0, 0, 0)
End Sub

Private Sub Label1_Click()
  Dim DiskFile As String
  If CurStu.Student_Id <= 0 Then
    MsgBox "请选择学生", 48, "警告"
    Unload Me
    Exit Sub
  End If
  CommonDialog1.Filter = "BMP文件(*.bmp)|*.bmp|JPEG文件(*.jpg)|*.jpg|GIF文件(*.gif)|*.gif"
  CommonDialog1.ShowOpen
  DiskFile = CommonDialog1.FileName
  If DiskFile = "" Then
    MsgBox "请选择照片文件", 48, "警告"
    Unload Me
    Exit Sub
  End If
  Call SaveImage(DiskFile, StuMan.AdoStuDetail)
  Call ShowImage(StuMan.Image1, StuMan.AdoStuDetail)
  Unload Me
End Sub

Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  Label1.FontBold = True
  Label1.ForeColor = RGB(255, 0, 0)
  
  Label2.FontBold = False
  Label2.ForeColor = RGB(0, 0, 0)
End Sub

Private Sub Label2_Click()
  If CurStu.Student_Id <= 0 Then
    MsgBox "请选择学生", 48, "警告"
    Unload Me
    Exit Sub
  End If
  StuMan.AdoStuDetail.Recordset.Fields(2).AppendChunk ""
  StuMan.AdoStuDetail.Recordset.Update
  StuMan.Image1.Picture = LoadPicture("")
  Unload Me
End Sub

Private Sub Label2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  Label2.FontBold = True
  Label2.ForeColor = RGB(255, 0, 0)
  
  Label1.FontBold = False
  Label1.ForeColor = RGB(0, 0, 0)
End Sub

⌨️ 快捷键说明

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