?? form2.frm
字號(hào):
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
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -