Click here to Skip to main content
15,921,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to read JavaScript's variables values in webBrowser control using C# Pin
A.Asif16-Oct-07 3:34
A.Asif16-Oct-07 3:34 
QuestionGetting text from one form into second form Pin
MumbleB15-Oct-07 5:37
MumbleB15-Oct-07 5:37 
AnswerRe: Getting text from one form into second form Pin
Giorgi Dalakishvili15-Oct-07 5:46
mentorGiorgi Dalakishvili15-Oct-07 5:46 
Questionhow to track backgroundworker threads Pin
jikubhai15-Oct-07 5:28
jikubhai15-Oct-07 5:28 
AnswerEvent Listeners Pin
Ennis Ray Lynch, Jr.15-Oct-07 5:41
Ennis Ray Lynch, Jr.15-Oct-07 5:41 
AnswerRe: how to track backgroundworker threads Pin
Giorgi Dalakishvili15-Oct-07 5:45
mentorGiorgi Dalakishvili15-Oct-07 5:45 
GeneralRe: how to track backgroundworker threads Pin
jikubhai15-Oct-07 23:07
jikubhai15-Oct-07 23:07 
QuestionRetrieving MS Outlook Contacts Pin
s3rro15-Oct-07 4:34
s3rro15-Oct-07 4:34 
Hi I am writing an application which retrieves your outlook contacts.
Right now I am able pop up the contacts window of the Outlook, but I want the specific fields to be printed in my checkedlistbox

I used the following code to pop up the contacts window. Now I want to get he name+last name and the fax number to printed in my chckedlistbox. But I cant find the object under OutlookItems to print the whole contacts list. Any Help?

try
{
Outlook.Application oApp = new Outlook.Application();

// Get the NameSpace information.
Outlook.NameSpace oNS = oApp.GetNamespace("mapi");

// Log on by using a dialog box to choose the profile.
oNS.Logon(System.Reflection.Missing.Value, System.Reflection.Missing.Value, true, true);

// Get the default Contacts folder.
Outlook.MAPIFolder oContacts = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts);

// Get the Items collection from the folder.
Outlook.Items oItems = (Outlook.Items)oContacts.Items;

// Get the first contact item in the Items collection.
Outlook.ContactItem oCt = (Outlook.ContactItem)oItems.GetLast();

string faxNum;
faxNum = oCt.BusinessFaxNumber.Replace("(", "").Replace(")", "").Replace("-", "").Replace(" ", "");
this.txtRecipientFax.Text = faxNum;

// Display the contact.
//oCt.Display(true);

AnswerRe: Retrieving MS Outlook Contacts Pin
led mike15-Oct-07 4:44
led mike15-Oct-07 4:44 
GeneralRe: Retrieving MS Outlook Contacts Pin
s3rro15-Oct-07 5:02
s3rro15-Oct-07 5:02 
GeneralRe: Retrieving MS Outlook Contacts Pin
led mike15-Oct-07 5:11
led mike15-Oct-07 5:11 
GeneralRe: Retrieving MS Outlook Contacts Pin
s3rro15-Oct-07 5:17
s3rro15-Oct-07 5:17 
GeneralRe: Retrieving MS Outlook Contacts Pin
Justin Perez15-Oct-07 5:23
Justin Perez15-Oct-07 5:23 
GeneralRe: Retrieving MS Outlook Contacts Pin
led mike15-Oct-07 5:24
led mike15-Oct-07 5:24 
GeneralRe: Retrieving MS Outlook Contacts Pin
s3rro15-Oct-07 5:36
s3rro15-Oct-07 5:36 
GeneralRe: Retrieving MS Outlook Contacts Pin
Justin Perez15-Oct-07 5:50
Justin Perez15-Oct-07 5:50 
GeneralRe: Retrieving MS Outlook Contacts Pin
s3rro15-Oct-07 6:02
s3rro15-Oct-07 6:02 
GeneralRe: Retrieving MS Outlook Contacts Pin
Justin Perez15-Oct-07 6:07
Justin Perez15-Oct-07 6:07 
GeneralRe: Retrieving MS Outlook Contacts Pin
led mike15-Oct-07 5:59
led mike15-Oct-07 5:59 
GeneralRe: Retrieving MS Outlook Contacts Pin
s3rro15-Oct-07 9:16
s3rro15-Oct-07 9:16 
QuestionMy app wont resize Pin
RussBus15-Oct-07 4:06
RussBus15-Oct-07 4:06 
AnswerRe: My app wont resize Pin
Andrei Ungureanu15-Oct-07 4:11
Andrei Ungureanu15-Oct-07 4:11 
GeneralRe: My app wont resize Pin
RussBus15-Oct-07 4:57
RussBus15-Oct-07 4:57 
GeneralRe: My app wont resize Pin
RussBus15-Oct-07 5:01
RussBus15-Oct-07 5:01 
GeneralRe: My app wont resize Pin
Giorgi Dalakishvili15-Oct-07 5:50
mentorGiorgi Dalakishvili15-Oct-07 5:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.