mirador.frm

来自「Control ocx de una cam de la leche pedri」· FRM 代码 · 共 77 行

FRM
77
字号
VERSION 5.00
Begin VB.Form Form2 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Form2"
   ClientHeight    =   3090
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4680
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   100
      Left            =   0
      Top             =   0
   End
   Begin VB.Image pr 
      Height          =   1935
      Left            =   0
      Top             =   0
      Width           =   2775
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public var, i

Private Sub Form_Click()
Form4.Show
End Sub

Private Sub Form_Load()
res = MsgBox("縇as im醙enes son JPG?", vbYesNo, "Revisi髇")
If res = vbYes Then
i = "1"
End If
Timer1.Enabled = True
End Sub

Private Sub Form_Unload(Cancel As Integer)
i = ""
End Sub

Private Sub pr_Click()
Form4.Show
End Sub

Private Sub Timer1_Timer()
On Error GoTo er
var = (var) + 1
Form4.Text1 = (var)
If i = "1" Then
pr.Picture = LoadPicture(Form1.filepath & "\" & var & ".jpg")
Else
pr.Picture = LoadPicture(Form1.filepath & "\" & var & ".bmp")
End If

Exit Sub
er:
res = MsgBox("Se ha terminado la revisi髇, 縬uieres repetirla?", vbYesNoCancel, "Revisi髇")
If res = vbYes Then
var = 0
ElseIf res = vbNo Then
Unload Me
ElseIf res = vbCancel Then
var = (var) + 1
End If
End Sub

⌨️ 快捷键说明

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