Contact.ShowDialog() : Not dialing the phone when tapped on the phone number ...

V

Venkat Polisetti

I have the following code in my app:


Contact contact = new Contact();
contact.FirstName = "V";
contact.LastName = "P";
contact.MobileTelephoneNumber = "(678) 423-7641";
contact.BusinessTelephoneNumber = "(678) 825-1920";

contact.ShowDialog();

This is poping up the Contact summary card which is what I want. But when
I tap the phone numbers on the card, some how it does not start the phone
dialer. But at the bottom of the screen it displays the "Call" menu option.
Nothing happens when I tap that too.

But when I go through Start->Contacts, tap a contact and from the Contact
card view, when I tap the phone number it dials.

Is there some thing that I am doing wrong here?

Regards,
Venkat Polisett
 
F

Fabien

Hi,

I think it isn't the same window; it is why you don't have the same
comportment and furthermore in your application, the bottom bar doesn't
react in the same way as the standard contact dialog. You can call the
API for making call in your application.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



Venkat Polisetti a écrit :
 
C

Chani Johnson [MSFT]

Actually, it is an issue of whether the contact has been "saved". In the
code sample below the contact has not been saved yet, and so it is not
possible to place a call from the summary card. However, with the code
modifications below you can actually place the call by tapping on the "Call
mobile" entry or using the "Call" softkey.

Contact contact = new Contact();
OutlookSession mySession = new OutlookSession();
contact.FirstName = "V";
contact.LastName = "P";
contact.MobileTelephoneNumber = "(678) 423-7641";
contact.BusinessTelephoneNumber = "(678) 825-1920";
mySession.Contacts.Items.Add(contact);
contact.ShowDialog();

Note the following comment in the documentation for the Contact class:

"Remarks
The Contact must later be added to a collection by using the
ContactCollection.Add() method"

http://msdn.microsoft.com/library/d..._WindowsMobile_PocketOutlook_Contact_ctor.asp

Let me know if you have any questions on this topic. I hope this helps!
--
Chani Johnson
Software Development Engineer
Microsoft Corp.

This posting is provided "AS IS" with no warranties, and confers no rights.
Hi,

I think it isn't the same window; it is why you don't have the same
comportment and furthermore in your application, the bottom bar doesn't
react in the same way as the standard contact dialog. You can call the
API for making call in your application.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



Venkat Polisetti a écrit :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top