模擬交通號誌
2010/05/04 10:33
瀏覽1,127
迴響22
推薦0
引用0

利用三個TextBox的BackColor(背景顏色)來模擬交通號誌( Red,Yellow,Green) !
動作方式先比較簡單一點吧! First -> Green Light ON last for 5seconds and then Yellow Light ON and last for one second and then RedLight ON and last for 5seconds !
How to do it? timer控制項是不可缺的! 因有三個燈號,所以要使用到三個Timer !
So!要先知道Timer控制項吧! setting上有 "Enable"參數-> True or Flase 再來還有計時時間(Timer的計時單位是 1mS [1毫秒],所以在 Interval參數中填入要計時的次數,例如填入1000 , 則 1mS*1000=1Second!則一秒鐘動作!
想一下吧 ! how to change the light color : Red, Yellow , Green !
Have fun with this homework!


你可能會有興趣的文章:
迴響(22) :
22樓. 8101542010/06/29 22:24
21樓. 8101642010/06/29 20:50
20樓. 8101662010/06/29 12:18
19樓. 8101652010/06/29 12:16
18樓. 8101462010/06/22 11:40404 13 林育旻
http://wwws.sysh.tc.edu.tw/~h810146/
17樓. 8101002010/06/22 10:33
16樓. 8101052010/06/15 10:39
15樓. 8101052010/06/15 10:33vb
403
16
810105
老師我的 車票1 車票2、交通號誌
功課都放在資料夾裡面,謝謝
14樓. 8101142010/06/02 22:03
13樓. 8101092010/06/02 21:53




