在程式碼視窗選command1 在右側的分選欄中你就會看到以下的觸發事件 Command1_Click() Command1_DragDrop(Source As Control, X As Single, Y As Single) Command1_DragOver(Source As Control, X As Single, Y As Single, State As Integer) Command1_GotFocus() Command1_KeyDown(KeyCode As Integer, Shift As Integer) Command1_KeyPress(KeyAscii As Integer) Command1_KeyUp(KeyCode As Integer, Shift As Integer) Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) button=1 是左鍵=2是右鍵 Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single Command1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)Command1_OLECompleteDrag(Effect As Long) Command1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single) Command1_OLEDragOver(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single, State As Integer) Command1_OLEGiveFeedback(Effect As Long, DefaultCursors As Boolea Command1_OLESetData(Data As DataObject, DataFormat As Integer) Command1_OLEStartDrag(Data As DataObject, AllowedEffects As Long)
在程式碼視窗選command1 在右側的分選欄中你就會看到以下的觸發事件 Command1_Click() Command1_DragDrop(Source As Control, X As Single, Y As Single) Command1_DragOver(Source As Control, X As Single, Y As Single, State As Integer) Command1_GotFocus() Command1_KeyDown(KeyCode As Integer, Shift As Integer) Command1_KeyPress(KeyAscii As Integer) Command1_KeyUp(KeyCode As Integer, Shift As Integer) Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) button=1 是左鍵=2是右鍵 Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single Command1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)Command1_OLECompleteDrag(Effect As Long) Command1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single) Command1_OLEDragOver(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single, State As Integer) Command1_OLEGiveFeedback(Effect As Long, DefaultCursors As Boolea Command1_OLESetData(Data As DataObject, DataFormat As Integer) Command1_OLEStartDrag(Data As DataObject, AllowedEffects As Long)