PC Review


Reply
Thread Tools Rate Thread

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

 
 
Venkat Polisetti
Guest
Posts: n/a
 
      20th Jul 2006

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


 
Reply With Quote
 
 
 
 
Fabien
Guest
Posts: n/a
 
      20th Jul 2006
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 :

> 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 Polisetti


 
Reply With Quote
 
Chani Johnson [MSFT]
Guest
Posts: n/a
 
      9th Sep 2006
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/de...ntact_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.
"Fabien" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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 :

> 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 Polisetti



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic phone dialing multi-line phone system WSU BratCat Microsoft Outlook Discussion 1 27th Nov 2007 02:01 AM
Dialing a Phone Number Tommy Microsoft Dot NET Compact Framework 1 24th Jan 2007 06:24 AM
Dialing numbers after initial phone number on PPC 2003 Phone Edition eric.mobiledev@gmail.com Microsoft Dot NET Compact Framework 1 4th Oct 2005 10:46 PM
Dialing a phone number Tim Henderson Microsoft Access Getting Started 2 19th Jan 2005 10:56 PM
Required components for dialing a contact phone# Bill Nguyen Microsoft Outlook Contacts 0 4th Nov 2003 11:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:01 PM.