📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "拖放功能"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Image Image1
Height = 480
Left = 2160
Picture = "Form2.frx":0000
Top = 120
Width = 480
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim dragx As Single
Dim dragy As Single
Const BEGIN_DRAG = 1
Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)
Image1.Picture = Source
Form1.Image1.Picture = LoadPicture("")
Image1.Move (X - dragx), (Y - dragy)
End Sub
Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
dragx = X
dragy = Y
Image1.Drag BEGIN_DRAG
Image1.DragIcon = LoadPicture(App.Path + "\graph9.ico")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -