Click here to Skip to main content
15,843,322 members
Home / Discussions / C#
   

C#

 
GeneralRe: listbox Pin
pmartike2-Jul-07 23:02
pmartike2-Jul-07 23:02 
GeneralRe: listbox Pin
pmartike3-Jul-07 1:12
pmartike3-Jul-07 1:12 
QuestionHow to write to a fix memory adress Pin
pmartike2-Jul-07 21:07
pmartike2-Jul-07 21:07 
AnswerRe: How to write to a fix memory adress Pin
originSH2-Jul-07 23:27
originSH2-Jul-07 23:27 
GeneralRe: How to write to a fix memory adress Pin
pmartike2-Jul-07 23:34
pmartike2-Jul-07 23:34 
AnswerRe: Prevent access to certain pages Pin
Sathesh Sakthivel2-Jul-07 20:19
Sathesh Sakthivel2-Jul-07 20:19 
GeneralRe: Prevent access to certain pages Pin
pmartike2-Jul-07 22:35
pmartike2-Jul-07 22:35 
QuestionOulook and outlook express /Email extraction Pin
jazeelkm2-Jul-07 20:08
jazeelkm2-Jul-07 20:08 
Hi all,

I am developing a windows application using C#.. In that I want to extract Email Ids from Outllook, Outlook Express and Windows Address Book...

In Outllook..........

I can extract Email ids using the following code...

Outlook.Application app= new Microsoft.Office.Interop.Outlook.Application();
Outlook.NameSpace ns = app.GetNamespace("MAPI");
object _missing = System.Reflection.Missing.Value;
Outlook.MAPIFolder ctc = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts);
foreach (Outlook.ContactItem citem in ctc.Items)
{
listIds.Items.Add(citem.Email1Address);
}

Q1) Using the above code I can display all the email ids from the outlook.
But if there are more than one profiles are created in the outlook.. (Say..... profile1 ,profile 2)...

Now this code will extract only from the default profile..
I want to give an option to the user to select the profile which he want to email ids...

I tried like
ns.Logon("Profile1",_missing, false, true);

But it is not working properly.. I think it is taking the profile name from somewhere else it is stored ( A session or something (I am not sure))...
How can I do that?????


NOW OUTLOOK EXPRESS and WAB

Q2) How can I access Outlook express and WAB using C#???

I think I can import Wab32.dll ...
From where i will get some reference for that (I got many C++ eg: but not a single one from C#)..

Thanking you in advancce

JAZ;)




-- modified at 5:12 Tuesday 3rd July, 2007
Questionimport list view in a text file Pin
justintimberlake2-Jul-07 19:25
justintimberlake2-Jul-07 19:25 
AnswerRe: import list view in a text file Pin
Mark Greenwood2-Jul-07 20:13
Mark Greenwood2-Jul-07 20:13 
GeneralRe: import list view in a text file Pin
justintimberlake2-Jul-07 20:32
justintimberlake2-Jul-07 20:32 
QuestionIs there printing feature in Dundas Gauge? Pin
~Alisa~Anny~2-Jul-07 18:22
~Alisa~Anny~2-Jul-07 18:22 
AnswerRe: Is there printing feature in Dundas Gauge? Pin
Christian Graus2-Jul-07 18:56
protectorChristian Graus2-Jul-07 18:56 
QuestionWebRequest.GetResponse() method How to Implement "SESSION BASE" authendication? Pin
liubin_aluzi2-Jul-07 17:37
liubin_aluzi2-Jul-07 17:37 
AnswerRe: WebRequest.GetResponse() method How to Implement "SESSION BASE" authendication? Pin
Guffa2-Jul-07 20:31
Guffa2-Jul-07 20:31 
GeneralRe: WebRequest.GetResponse() method How to Implement "SESSION BASE" authendication? Pin
liubin_aluzi4-Jul-07 17:08
liubin_aluzi4-Jul-07 17:08 
Question[Message Deleted] Pin
mayvarma2-Jul-07 12:59
mayvarma2-Jul-07 12:59 
AnswerRe: need code for this app in C# Pin
Christian Graus2-Jul-07 13:08
protectorChristian Graus2-Jul-07 13:08 
AnswerHere ya go Pin
Jimmanuel2-Jul-07 13:48
Jimmanuel2-Jul-07 13:48 
GeneralRe: Here ya go Pin
Luc Pattyn2-Jul-07 13:55
sitebuilderLuc Pattyn2-Jul-07 13:55 
GeneralRe: Here ya go Pin
ruanr2-Jul-07 21:58
ruanr2-Jul-07 21:58 
AnswerRe: need code for this app in C# Pin
Dave Kreskowiak2-Jul-07 13:53
mveDave Kreskowiak2-Jul-07 13:53 
QuestionHow to call a base class virtual method instead Pin
mschuckmann2-Jul-07 11:45
mschuckmann2-Jul-07 11:45 
AnswerRe: How to call a base class virtual method instead Pin
PIEBALDconsult2-Jul-07 11:54
mvePIEBALDconsult2-Jul-07 11:54 
GeneralRe: How to call a base class virtual method instead Pin
Pete O'Hanlon2-Jul-07 11:58
subeditorPete O'Hanlon2-Jul-07 11:58 

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.