Assuming you have the lastest MSI installed, you have some project  
templates (like contacts etc.). Those templates come with a LOGIN  
dialog, that does what you want. So just steal the code from  
logindialog.cs (not sure about the name of the file from the top of my  
head).

Frank
On Apr 16, 2009, at 7:24 AM, [email protected] wrote:

>
> Any chance you could provide some sample code? Sorry just really new
> to doing this stuff in C# and having a little bit of trouble. Thanks
> for your help!
>
> On Apr 15, 7:42 am, "Julian (Google)" <[email protected]> wrote:
>> Hi,
>>
>> After your code, you would need to capture an exception when you do  
>> an
>> operation, for example getFeed(), for more information on
>> InvalidCredentialsException see:
>>
>> Java:http://code.google.com/apis/gdata/javadoc/com/google/gdata/client/Goo 
>> ...
>>
>> C#:http://google-gdata.googlecode.com/svn/docs/folder18/T_Google_GData_C 
>> ...
>>
>> -Julian
>>
>> On Apr 13, 11:12 pm, "[email protected]" <[email protected]> wrote:
>>
>>> Hi all,
>>>   I'm new to coding these types of programs but trying to learn. My
>>> question is when I use ClientLogin to attempt to log in, how do I  
>>> show
>>> the user if they enter the wrong user ID and/or password? Basically
>>> just want to pop up a message box saying "User ID and/or password
>>> incorrect". Below is the code I'm using Thanks!
>>
>>> GContact = new ContactsService("GContacts");
>>> GContact.setUserCredentials(userIDBox.Text, passWordBox.Text);
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to