Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 Outlook
I wrote following code for get names of inbox sub folder
   private void comboBoxInboxFolders_SelectedIndexChanged(object sender, EventArgs e)
        {
            LoadEmailFolderCombo(comboBoxInboxFolders);
        }
 
        private void LoadEmailFolderCombo(ComboBox nbFolders)
        {
            
            OutLook._Application outlookObj = new OutLook.Application();
            OutLook.MAPIFolder emailFolder = (OutLook.MAPIFolder)
             outlookObj.Session.GetDefaultFolder(OutLook.OlDefaultFolders.olFolderInbox);
 
            if (!nbFolders.Items.Contains("Default"))
            {
                nbFolders.Items.Add("Default");
            }
            foreach (OutLook.MAPIFolder subFolder in emailFolder.Folders)
            {
                if (!nbFolders.Items.Contains(subFolder.Name))
                {
                    nbFolders.Items.Add(subFolder.Name);
                }
            }
        
        }
 
but it wont give any output and it is running pls tell me wht is the issue there ..i am using outlook 12.0 object library
Posted 13-Jun-10 2:49am
Edited 13-Jun-10 3:16am
Henry Minute223.9K
v3
Comments
Henry Minute at 13-Jun-10 8:38am
   
Please do not be offended. It's just that I have noticed a lot of requests from you about the same project. I put the smiley on the end to indicate that I was joking. If I knew anything about Outlook programming I would try to help you, but I don't even use Outlook. Good luck!
Kasunmit at 13-Jun-10 8:43am
   
ok ok i know that u r joking friend ... i add that comment because some other ppl r in code project also might think that i am using their knowledge for my personal gain or earn income ... i was not offended because u ppl have right to tell that cos i am the one who disturbing u every time .. :D

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

How much are you paying the nice people here at Code Project who have, piece by piece, completed your project? Big Grin | :-D
  Permalink  
Comments
Kasunmit at 13-Jun-10 8:31am
   
:P i apologizing for disturbing u ppl .. but this is not a project that i can earn .. if it is so i can get help from experts by paying them or get training but this effort is only for get done my university project for academic purpose .... i need to tell that this is my 1st project so i have no idea about programming ... i can t pay any of u coz i dnt have any sort of income yet... only thing i can give u is thnx and smile ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 565
1 Maciej Los 359
2 Kornfeld Eliyahu Peter 309
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 13 Jun 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100