一個(gè)關(guān)于排序的示例,用top關(guān)鍵字排序。通過(guò)鼠標(biāo)移動(dòng)事件來(lái)查看 源代碼。窗體會(huì)在一點(diǎn)情況下移動(dòng) 當(dāng)點(diǎn)擊成功后,就能查看程序的源代碼了。 實(shí)例文件下載 Private Sub cmd否_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim N As Integer N = Me.cmd否.Top If N > 7000 Then Me.cmd否.Top = 1245 Me.cmd是.Top = 1245 Me.lab提問(wèn).Top = 1245 - 500 MsgBox "這就沒(méi)意思了!", vbCritical, "情人小語(yǔ)" End End If Me.cmd否.Top = N + 100 Me.cmd是.Top = N + 100 Me.lab提問(wèn).Top = N - 500 End Sub Private Sub cmd是_Click() MsgBox "我也愛(ài)你!" + vbNewLine + "暈倒……", vbInformation, "情人小語(yǔ)" End Sub Private Sub Form_Load() Dim I, J As Integer Access.SetOption "Show Status Bar", False DoCmd.RunCommand acCmdAppMaximize DoCmd.Maximize I = Me.WindowWidth J = Me.WindowHeight DoCmd.Restore DoCmd.MoveSize 0, 0, I, J Me.Picture = CurrentProject.Path & "\mm.jpg" End Sub |
|站長(zhǎng)郵箱|小黑屋|手機(jī)版|Office中國(guó)/Access中國(guó)
( 粵ICP備10043721號(hào)-1 )
GMT+8, 2025-7-17 00:53 , Processed in 0.090966 second(s), 23 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.