Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generics question Pin
Pete Burkindine15-Aug-10 9:01
Pete Burkindine15-Aug-10 9:01 
AnswerRe: Generics question Pin
PIEBALDconsult14-Aug-10 15:32
mvePIEBALDconsult14-Aug-10 15:32 
AnswerProposed Solutions [modified] Pin
Pete Burkindine14-Aug-10 17:38
Pete Burkindine14-Aug-10 17:38 
QuestionUser Control Pin
humayunlalzad14-Aug-10 8:50
humayunlalzad14-Aug-10 8:50 
AnswerRe: User Control Pin
Luc Pattyn14-Aug-10 8:55
sitebuilderLuc Pattyn14-Aug-10 8:55 
AnswerRe: User Control Pin
OriginalGriff14-Aug-10 9:30
mveOriginalGriff14-Aug-10 9:30 
GeneralRe: User Control Pin
humayunlalzad15-Aug-10 5:05
humayunlalzad15-Aug-10 5:05 
Questionoutlook folder Pin
michaelgr114-Aug-10 4:46
michaelgr114-Aug-10 4:46 
Hello,

I need to find a specific mail message in outlook according it's subject. I want the program to search the mail in all the folders (including in personal folders and all sub-folders) . How can i do it?

I wrote this thing:
Outlook.Application oApp = new Outlook.Application();
Outlook.NameSpace oNS = oApp.GetNamespace("mapi");
oNS.Logon(Missing.Value, Missing.Value, false, true);

Outlook.MAPIFolder oIFolder = oNS.Folders.GetFirst();
Console.WriteLine(oIFolder.Name);
int nFolderCount = oNS.Folders.Count;
for (int p=1; p<=FolderCount; p++)
{
if(oIFolder[p].Name=="name")
return true;
}
}



The thing is that it checks only the folder name and also it is not working recursively and i don't know how to do it.
Any help?
Questiondatat base program user odbc driver in C# .net Pin
DKRAUT14-Aug-10 4:02
DKRAUT14-Aug-10 4:02 
AnswerRe: datat base program user odbc driver in C# .net Pin
Dan Mos14-Aug-10 4:07
Dan Mos14-Aug-10 4:07 
AnswerRe: datat base program user odbc driver in C# .net Pin
Eddy Vluggen14-Aug-10 4:22
professionalEddy Vluggen14-Aug-10 4:22 
Questioncant create an xml file Pin
igalep13214-Aug-10 0:18
igalep13214-Aug-10 0:18 
AnswerRe: cant create an xml file Pin
Abhishek Sur14-Aug-10 0:30
professionalAbhishek Sur14-Aug-10 0:30 
GeneralRe: cant create an xml file Pin
igalep13214-Aug-10 0:40
igalep13214-Aug-10 0:40 
AnswerRe: cant create an xml file Pin
PIEBALDconsult14-Aug-10 5:28
mvePIEBALDconsult14-Aug-10 5:28 
Questionhighlighting the row of the access database Pin
swtlibra13-Aug-10 21:31
swtlibra13-Aug-10 21:31 
AnswerRe: highlighting the row of the access database Pin
Roger Wright13-Aug-10 22:25
professionalRoger Wright13-Aug-10 22:25 
AnswerRe: highlighting the row of the access database Pin
Luc Pattyn13-Aug-10 22:44
sitebuilderLuc Pattyn13-Aug-10 22:44 
QuestionHierachy Grid from Objects Pin
Vimalsoft(Pty) Ltd13-Aug-10 20:51
professionalVimalsoft(Pty) Ltd13-Aug-10 20:51 
QuestionMessage Removed Pin
13-Aug-10 13:06
yum 201013-Aug-10 13:06 
AnswerRe: sever is not displaying the content that " you have left the chat room".... Pin
OriginalGriff13-Aug-10 23:06
mveOriginalGriff13-Aug-10 23:06 
GeneralMessage Removed Pin
14-Aug-10 0:26
yum 201014-Aug-10 0:26 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
OriginalGriff14-Aug-10 2:01
mveOriginalGriff14-Aug-10 2:01 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
yum 201014-Aug-10 7:45
yum 201014-Aug-10 7:45 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
yum 201014-Aug-10 7:49
yum 201014-Aug-10 7:49 

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.