(4) PhoneCalls
ဒီမာေတာ့ ပထမတုန္းက လိုပဲ Designer ကိုဖြင့္ပီး
AddView ကေန Button ေတထည့္ပါ။ ပထမတုန္းက Buttonတခုပဲ ဒီတခါေတာ့ 3ခုထညိ့ပါ။
Button1
Button2 နဲ႕
Button3 ပါ။
Button 1 ရဲ႕ Text ကို Call to HtooPhyoe
Button 2 ရဲ႕ Text ကို Call to 123
Button 3 ရဲ႕ Text ကို Call to 123456
လို႕ေရးလိုက္ပါမယ္(နမူနာေျပာတာပါ)
ပီးရင္ ပံုမွန္အတိုင္း Button ေတကို Click နဲ႕ Generate လုပ္ပါ။
ဒါဆို IDE စာမ်က္ႏွာကို သြားပါမယ္။
IDE ရဲ႕ ညာဘက္ေအာက္ေထာင့္ ဧရီယာက Tab ေလးမွာ။
Modules,Files,Logs,Libs ဆိုပီးေတြ႕မယ္။ Libs ကိုႏွိပ္ပါ။ ျပလာတဲ႕ Libစာရင္းထဲက ( Phone) ကိုရွာပါ။ပီး အမွတ္ေလး တပ္ေပးလိုက္ပါ။
ဒါဆို Action ေတေရးေတာ့မယ္။
Button1 အတြက္
Sub Button1_Click
Dim pc As PhoneCalls
StartActivity(pc.Call("09259350825"))
End Sub
ဒီမာေတာ့ ပထမတုန္းက လိုပဲ Designer ကိုဖြင့္ပီး
AddView ကေန Button ေတထည့္ပါ။ ပထမတုန္းက Buttonတခုပဲ ဒီတခါေတာ့ 3ခုထညိ့ပါ။
Button1
Button2 နဲ႕
Button3 ပါ။
Button 1 ရဲ႕ Text ကို Call to HtooPhyoe
Button 2 ရဲ႕ Text ကို Call to 123
Button 3 ရဲ႕ Text ကို Call to 123456
လို႕ေရးလိုက္ပါမယ္(နမူနာေျပာတာပါ)
ပီးရင္ ပံုမွန္အတိုင္း Button ေတကို Click နဲ႕ Generate လုပ္ပါ။
ဒါဆို IDE စာမ်က္ႏွာကို သြားပါမယ္။
IDE ရဲ႕ ညာဘက္ေအာက္ေထာင့္ ဧရီယာက Tab ေလးမွာ။
Modules,Files,Logs,Libs ဆိုပီးေတြ႕မယ္။ Libs ကိုႏွိပ္ပါ။ ျပလာတဲ႕ Libစာရင္းထဲက ( Phone) ကိုရွာပါ။ပီး အမွတ္ေလး တပ္ေပးလိုက္ပါ။
ဒါဆို Action ေတေရးေတာ့မယ္။
Button1 အတြက္
Sub Button1_Click
Dim pc As PhoneCalls
StartActivity(pc.Call("09259350825"))
End Sub
Button2 အတြက္က
Sub Button2_Click
Dim pc As PhoneCalls
StartActivity(pc.Call("123"))
End Sub
Button3အတြက္က
Sub Button3_Click
Dim pc As PhoneCalls
StartActivity(pc.Call("123456"))
End Sub
အာ့လိုေရးပီး Save ပီး Run ၾကည့္ပါ။
Button1 , Button2 နဲ႕ 3 တခုျခင္းဟာ ကိုေပးထားတဲ႕ ဖုန္းနံပါတ္ေတအတိုင္း ဖုန္းေခၚေပးပါလိမ့္မယ္။
နမူနာ zip -http://pc.cd/9TF7
အဆင္ေျပ၏ မေျပ၏ ကို
Group မွာ ၀င္ေရာက္ ေျပာဆိုပါ။
https://m.facebook.com/groups/316136215260862
Sub Button2_Click
Dim pc As PhoneCalls
StartActivity(pc.Call("123"))
End Sub
Button3အတြက္က
Sub Button3_Click
Dim pc As PhoneCalls
StartActivity(pc.Call("123456"))
End Sub
အာ့လိုေရးပီး Save ပီး Run ၾကည့္ပါ။
Button1 , Button2 နဲ႕ 3 တခုျခင္းဟာ ကိုေပးထားတဲ႕ ဖုန္းနံပါတ္ေတအတိုင္း ဖုန္းေခၚေပးပါလိမ့္မယ္။
နမူနာ zip -http://pc.cd/9TF7
အဆင္ေျပ၏ မေျပ၏ ကို
Group မွာ ၀င္ေရာက္ ေျပာဆိုပါ။
https://m.facebook.com/groups/316136215260862
No comments:
Post a Comment