robife Member Licensed User Longtime User Dec 30, 2012 #1 Hi guys I was searching for many hours Now, I cant find or understand how to fix this issue. I have a ListView of contact persons with 9 different phone numbers. When I click on a name/Item I want the numer of the person to be called and MsgBox with two options with yes or no. Code: Copy Sub ListView1_ItemClick (Position As Int, Value As Object) If Msgbox2("Onsker du a ringe ?", "", "Ja", "", "Nei", Null) = DialogResponse.POSITIVE Then 'make call StartActivity(p.Call(1)) End If End Sub Code: Copy ListView1.AddTwoLinesAndBitmap2("Formann", "Fornavn - 9999999", Bitmap1, "1") ListView1.AddTwoLinesAndBitmap2("Viseformann.", "Fornavn - 88989898", Bitmap1,"2") ListView1.AddTwoLinesAndBitmap2("Kasserer.", "Fornavn - 90990990", Bitmap1,"3") How can I fix this can somebody help me please. :BangHead: Last edited: Dec 30, 2012
Hi guys I was searching for many hours Now, I cant find or understand how to fix this issue. I have a ListView of contact persons with 9 different phone numbers. When I click on a name/Item I want the numer of the person to be called and MsgBox with two options with yes or no. Code: Copy Sub ListView1_ItemClick (Position As Int, Value As Object) If Msgbox2("Onsker du a ringe ?", "", "Ja", "", "Nei", Null) = DialogResponse.POSITIVE Then 'make call StartActivity(p.Call(1)) End If End Sub Code: Copy ListView1.AddTwoLinesAndBitmap2("Formann", "Fornavn - 9999999", Bitmap1, "1") ListView1.AddTwoLinesAndBitmap2("Viseformann.", "Fornavn - 88989898", Bitmap1,"2") ListView1.AddTwoLinesAndBitmap2("Kasserer.", "Fornavn - 90990990", Bitmap1,"3") How can I fix this can somebody help me please. :BangHead:
NJDude Expert Licensed User Longtime User Dec 30, 2012 #2 You will have to do something like this: Code: Copy ... ListView1.AddTwoLinesAndBitmap2("Formann", "Janina Huseby - 413 62 565", Bitmap, "413 62 565") ... and to call: Code: Copy ... StartActivity(p.Call(Value)) ... Upvote 0
You will have to do something like this: Code: Copy ... ListView1.AddTwoLinesAndBitmap2("Formann", "Janina Huseby - 413 62 565", Bitmap, "413 62 565") ... and to call: Code: Copy ... StartActivity(p.Call(Value)) ...
robife Member Licensed User Longtime User Dec 30, 2012 #3 NJDude said: You will have to do something like this: Code: Copy ... ListView1.AddTwoLinesAndBitmap2("Formann", "Janina Huseby - 413 62 565", Bitmap, "413 62 565") ... and to call: Code: Copy ... StartActivity(p.Call(Value)) ... Click to expand... Hi NJDUDE thank you for helping me This worked like a charm i really appreciate your help :icon_clap: Upvote 0
NJDude said: You will have to do something like this: Code: Copy ... ListView1.AddTwoLinesAndBitmap2("Formann", "Janina Huseby - 413 62 565", Bitmap, "413 62 565") ... and to call: Code: Copy ... StartActivity(p.Call(Value)) ... Click to expand... Hi NJDUDE thank you for helping me This worked like a charm i really appreciate your help :icon_clap: