Click here to Skip to main content
15,922,419 members
Home / Discussions / C#
   

C#

 
AnswerRe: please correct my query Pin
Colin Angus Mackay12-Jan-06 1:48
Colin Angus Mackay12-Jan-06 1:48 
GeneralRe: please correct my query Pin
Sasuko12-Jan-06 2:40
Sasuko12-Jan-06 2:40 
GeneralRe: please correct my query Pin
Colin Angus Mackay12-Jan-06 2:50
Colin Angus Mackay12-Jan-06 2:50 
AnswerRe: please correct my query Pin
Guffa12-Jan-06 2:23
Guffa12-Jan-06 2:23 
AnswerRe: please correct my query Pin
Sasuko12-Jan-06 4:49
Sasuko12-Jan-06 4:49 
QuestionUsing String.Replace method with variables Pin
sohne11-Jan-06 23:11
sohne11-Jan-06 23:11 
AnswerRe: Using String.Replace method with variables Pin
Colin Angus Mackay11-Jan-06 23:23
Colin Angus Mackay11-Jan-06 23:23 
QuestionImporting contacts to Microsoft Outlook with C# Pin
Starchild200511-Jan-06 21:59
Starchild200511-Jan-06 21:59 
Hello!

I would like to import conactinformation to Microsoft Outlook C#. I know how to do this if you want the information to be put into your regular contactlist in Microsoft Outlook. But I can't get it to be a part of "Public Folders -> All Public Folders". Here is my code:

            <br />
public void exportContactToOutlook(Person contact)<br />
{<br />
  Outlook.Application objOutlook = new Outlook.ApplicationClass();<br />
            NameSpace outlookNS = objOutlook.GetNamespace("MAPI");<br />
  MAPIFolder contactFolder = outlookNS.GetDefaultFolder(OlDefaultFolders.olPublicFoldersAllPublicFolders);<br />
            <br />
           <br />
  Outlook.ContactItem objContact = (Outlook.ContactItem)objOutlook.CreateItem(Outlook.OlItemType.olContactItem);            <br />
            objContact.CompanyName = contact.CompanyName;<br />
            objContact.Save();<br />
}<br />


This will only save it to the regular contactlist. I know that this code shouldn't work but what is the missing link? Any ideas?
QuestionHow can be a Transparent panel control can be created Pin
Shashidharreddy11-Jan-06 21:52
Shashidharreddy11-Jan-06 21:52 
AnswerRe: How can be a Transparent panel control can be created Pin
AB777111-Jan-06 23:53
AB777111-Jan-06 23:53 
AnswerRe: How can be a Transparent panel control can be created Pin
exhaulted12-Jan-06 3:24
exhaulted12-Jan-06 3:24 
Questionestablish GPRS connection Pin
Frank23111-Jan-06 20:58
Frank23111-Jan-06 20:58 
Questionwindows services Pin
PrakashBhaskar11-Jan-06 19:42
PrakashBhaskar11-Jan-06 19:42 
AnswerRe: windows services Pin
Mike Dimmick11-Jan-06 23:56
Mike Dimmick11-Jan-06 23:56 
Questiondetect sections Pin
picasso211-Jan-06 18:44
picasso211-Jan-06 18:44 
AnswerRe: detect sections Pin
Koushik Biswas12-Jan-06 6:15
Koushik Biswas12-Jan-06 6:15 
Questiondoubt in Infragistics.Win.UltraWinTree Pin
dhol11-Jan-06 17:56
dhol11-Jan-06 17:56 
AnswerRe: doubt in Infragistics.Win.UltraWinTree Pin
Christian Graus11-Jan-06 18:09
protectorChristian Graus11-Jan-06 18:09 
AnswerRe: doubt in Infragistics.Win.UltraWinTree Pin
CodyGen11-Jan-06 19:59
CodyGen11-Jan-06 19:59 
QuestionDelegate in C# Pin
hung_ngole11-Jan-06 16:44
hung_ngole11-Jan-06 16:44 
AnswerRe: Delegate in C# Pin
Curtis Schlak.11-Jan-06 17:07
Curtis Schlak.11-Jan-06 17:07 
QuestionConfigurationSettings threadsafe? Pin
pokksey11-Jan-06 15:11
pokksey11-Jan-06 15:11 
Questionhow insert a row in Access Database? Pin
Sasuko11-Jan-06 13:43
Sasuko11-Jan-06 13:43 
AnswerRe: how insert a row in Access Database? Pin
Christian Graus11-Jan-06 14:08
protectorChristian Graus11-Jan-06 14:08 
GeneralRe: how insert a row in Access Database? Pin
Sasuko11-Jan-06 14:19
Sasuko11-Jan-06 14:19 

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.