回复 2楼 sdta
在表单的Init里
thisform.image1.Visible = .F.
thisform.image2.Visible = .F.
thisform.image3.Visible = .F.
thisform.image4.Visible = .F.
thisform.timer1.Enabled = .F.
thisform.timer2.Enabled = .F.
thisform.timer3.Enabled = .F.
thisform.timer4.Enabled = .F.
thisform.image1.Picture ="D:\我的资料库\Documents\Visual FoxPro 项目\1\dh1.gif"
thisform.image2.Picture ="D:\我的资料库\Documents\Visual FoxPro 项目\1\dh2.gif"
thisform.image3.Picture ="D:\我的资料库\Documents\Visual FoxPro 项目\1\dh3.gif"
thisform.image4.Picture ="D:\我的资料库\Documents\Visual FoxPro 项目\1\dh4.gif"
在表单的Keypress里
LPARAMETERS nKeyCode, nShiftAltCtrl
LOCAL lc
lc=CHR(nkeycode)
DO case
CASE LC=="A"
THISFORM.image1.Visible=.T.
thisform.timer1.Enabled = .T.
CASE LC=="B"
THISFORM.image2.Visible=.T.
thisform.timer2.Enabled = .T.
CASE LC=="C"
THISFORM.image3.Visible=.T.
thisform.timer3.Enabled = .T.
CASE LC=="D"
THISFORM.image4.Visible=.T.
thisform.timer4.Enabled = .T.
endcase
此外还有4个时钟
Timer1的timer里
thisform.image1.Visible = .F.