Contents ...
udn網路城邦
模擬交通號誌
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樓. 810154
2010/06/29 22:24
homework

高一四

21號

高麗雲

http://wwws.sysh.tc.edu.tw/~h810154/

21樓. 810164
2010/06/29 20:50
810164

810164

40431

陳珮婕

http://wwws.sysh.tc.edu.tw/~h810164

20樓. 810166
2010/06/29 12:18
810166
404
33
陳燕琳
810166
http://wwws.sysh.tc.edu.tw/~h810166
19樓. 810165
2010/06/29 12:16
810165

810165

40432

陳鈺洵

http://wwws.sysh.tc.edu.tw/~h810165

18樓. 810146
2010/06/22 11:40
17樓. 810100
2010/06/22 10:33
810100

40311

抱歉補交~~

http://wwws.sysh.tc.edu.tw/~h810100/

16樓. 810105
2010/06/15 10:39
vb

403

16

老師上一個回應是我的

http://wwws.sysh.tc.edu.tw/~h810105/

15樓. 810105
2010/06/15 10:33
vb

403

16

810105

老師我的  車票1 車票2、交通號誌

功課都放在資料夾裡面,謝謝

14樓. 810114
2010/06/02 22:03
810114

403

20號

陳雅筑

http://wwws.sysh.tc.edu.tw/~h810114

13樓. 810109
2010/06/02 21:53
810109

403

20

莊詠婷

http://wwws.sysh.tc.edu.tw/~h810109

(第一個檔案 0603.exe)

發表迴響

會員登入