Click here to Skip to main content
15,913,941 members
Home / Discussions / C#
   

C#

 
AnswerRe: can we do row span and column span of c# datagrid Pin
MadArtSoft27-Jan-09 1:44
MadArtSoft27-Jan-09 1:44 
QuestionURL into ClipBoard Pin
Member 587250026-Jan-09 21:44
Member 587250026-Jan-09 21:44 
AnswerRe: URL into ClipBoard Pin
benjymous26-Jan-09 22:19
benjymous26-Jan-09 22:19 
QuestionDictionary Classes Pin
Udayaraju26-Jan-09 21:29
Udayaraju26-Jan-09 21:29 
AnswerRe: Dictionary Classes Pin
S. Senthil Kumar26-Jan-09 21:34
S. Senthil Kumar26-Jan-09 21:34 
QuestionOutlook.MailItem Issues Pin
Sun Rays26-Jan-09 20:25
Sun Rays26-Jan-09 20:25 
AnswerRe: Outlook.MailItem Issues Pin
dennissal10-Mar-10 1:50
dennissal10-Mar-10 1:50 
GeneralRe: Outlook.MailItem Issues Pin
Ed Arnone2-May-11 8:15
Ed Arnone2-May-11 8:15 
The below section should assist anyone attempting to use the MailItem object.

The key to this code not throwing exceptions is that the items collection may
contain more than just MailItems and therefore the following code allows you
to retrieve just the MailItems from the collection.

//create an instance of Outlook
Outlook.Application olApp = new Outlook.Application();
//create a MAPIFolder object pointed to the default inbox
Outlook.MAPIFolder inBox = (Outlook.MAPIFolder)olApp.ActiveExplorer().Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
//create an Items collection and pass in the inbox items
Outlook.Items Inboxitems = inBox.Items;

//loop through the items that are MailItem and collect the size of the items
//to get the total size of the inbox
foreach (Outlook.MailItem item in Inboxitems.OfType<Outlook.MailItem>())
{
     InboxSize = InboxSize + item.Size;                                      
}


Obviously once you have a handle to the individual Mailitem you can access all of it's properties.

Happy Coding Smile | :)
QuestionExtracting attachments from xml using C# Pin
Reetu Singh26-Jan-09 20:01
Reetu Singh26-Jan-09 20:01 
AnswerRe: Extracting attachments from xml using C# Pin
N a v a n e e t h26-Jan-09 21:05
N a v a n e e t h26-Jan-09 21:05 
GeneralRe: Extracting attachments from xml using C# Pin
Reetu Singh26-Jan-09 21:11
Reetu Singh26-Jan-09 21:11 
GeneralRe: Extracting attachments from xml using C# Pin
SeMartens26-Jan-09 22:10
SeMartens26-Jan-09 22:10 
GeneralRe: Extracting attachments from xml using C# Pin
Reetu Singh26-Jan-09 22:24
Reetu Singh26-Jan-09 22:24 
GeneralRe: Extracting attachments from xml using C# Pin
Reetu Singh27-Jan-09 1:20
Reetu Singh27-Jan-09 1:20 
GeneralRe: Extracting attachments from xml using C# Pin
SeMartens27-Jan-09 2:02
SeMartens27-Jan-09 2:02 
GeneralRe: Extracting attachments from xml using C# Pin
Reetu Singh27-Jan-09 19:16
Reetu Singh27-Jan-09 19:16 
GeneralRe: Extracting attachments from xml using C# Pin
SeMartens27-Jan-09 21:00
SeMartens27-Jan-09 21:00 
Questionnull DateTime and NHibernate Pin
devvvy26-Jan-09 19:28
devvvy26-Jan-09 19:28 
AnswerRe: null DateTime and NHibernate Pin
SeMartens26-Jan-09 21:08
SeMartens26-Jan-09 21:08 
AnswerRe: null DateTime and NHibernate Pin
Kythen27-Jan-09 10:53
Kythen27-Jan-09 10:53 
GeneralRe: null DateTime and NHibernate Pin
devvvy27-Jan-09 14:56
devvvy27-Jan-09 14:56 
QuestionYahoo API Pin
prabhatmishra26-Jan-09 19:25
prabhatmishra26-Jan-09 19:25 
AnswerRe: Yahoo API Pin
benjymous26-Jan-09 22:21
benjymous26-Jan-09 22:21 
GeneralRe: Yahoo API Pin
prabhatmishra26-Jan-09 22:43
prabhatmishra26-Jan-09 22:43 
GeneralRe: Yahoo API Pin
benjymous26-Jan-09 23:35
benjymous26-Jan-09 23:35 

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.