📄 vbsimp.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{D155F1AE-D9A4-458C-8CEE-498CB717DB7B}#1.0#0"; "DBPix20.ocx"
Begin VB.Form VBSimpFrm
Caption = "VBSimp"
ClientHeight = 7320
ClientLeft = 60
ClientTop = 360
ClientWidth = 8820
LinkTopic = "Form1"
ScaleHeight = 7320
ScaleWidth = 8820
StartUpPosition = 3 'Windows Default
Begin DBPIXLib.DBPix20 DBPix1
DataField = "Image"
DataSource = "Adodc1"
Height = 5895
Left = 120
TabIndex = 7
Top = 120
Width = 7095
_Version = 131072
_ExtentX = 12515
_ExtentY = 10398
_StockProps = 1
_Image = "VBSimp.frx":0000
ImageResampleWidth= 100
ImageResampleHeight= 100
ImageResampleMode= 0
ImageSaveFormat = 0
JPEGQuality = 75
JPEGEncoding = 0
JPEGColorMode = 0
JPEGNoRecompress= -1 'True
JPEGRotateWarning= 0
PNGColorDepth = 0
PNGCompression = 0
PNGFilter = 0
PNGInterlace = 1
ImageDitherMethod= 3
ImagePaletteMethod= 4
ImagePreviewMode= 0 'False
ImageKeepMetaData= -1 'True
UseAmbientBackcolor= -1 'True
ViewAsyncDecoding= -1 'True
ViewEnableMouseZoom= -1 'True
ViewInitialZoom = 0
ViewHAlign = 1
ViewVAlign = 1
ViewMenuMode = 0
End
Begin VB.CommandButton TWAIN
Caption = "TWAIN"
Height = 375
Index = 5
Left = 7680
TabIndex = 6
Top = 1920
Width = 975
End
Begin VB.CommandButton Clear
Caption = "Clear"
Height = 375
Index = 4
Left = 7680
TabIndex = 5
Top = 1560
Width = 975
End
Begin VB.CommandButton Paste
Caption = "Paste"
Height = 375
Index = 3
Left = 7680
TabIndex = 4
Top = 1200
Width = 975
End
Begin VB.CommandButton Copy
Caption = "Copy"
Height = 375
Index = 2
Left = 7680
TabIndex = 3
Top = 840
Width = 975
End
Begin VB.CommandButton Save
Caption = "Save"
Height = 375
Index = 1
Left = 7680
TabIndex = 2
Top = 480
Width = 975
End
Begin VB.CommandButton New
Caption = "New"
Height = 375
Index = 1
Left = 3840
TabIndex = 1
Top = 6240
Width = 735
End
Begin VB.CommandButton Load
Caption = "Load"
Height = 375
Index = 0
Left = 7680
TabIndex = 0
Top = 120
Width = 975
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 120
Top = 6240
Width = 3615
_ExtentX = 6376
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 2
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
End
Attribute VB_Name = "VBSimpFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
'Specify your connection string
Dim strDBPath As String
strDBPath = App.Path
If Right(strDBPath, 1) <> "\" Then strDBPath = strDBPath + "\"
strDBPath = strDBPath + "VBSimp.mdb"
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & ";Persist Security Info=False"
Adodc1.RecordSource = "tImages"
Adodc1.Refresh
End Sub
Private Sub Load_Click(Index As Integer)
DBPix1.ImageLoad
End Sub
Private Sub Save_Click(Index As Integer)
DBPix1.ImageSave
End Sub
Private Sub Copy_Click(Index As Integer)
DBPix1.ImageCopy
End Sub
Private Sub Paste_Click(Index As Integer)
DBPix1.ImagePaste
End Sub
Private Sub Clear_Click(Index As Integer)
DBPix1.ImageClear
End Sub
Private Sub TWAIN_Click(Index As Integer)
DBPix1.TWAINAcquire
End Sub
Private Sub New_Click(Index As Integer)
Adodc1.Recordset.AddNew
DBPix1.ImageClear
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -