Click here to Skip to main content
15,888,109 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to combine 3 different list objects into a single list object? Pin
Pete O'Hanlon26-May-11 5:50
mvePete O'Hanlon26-May-11 5:50 
AnswerRe: How to combine 3 different list objects into a single list object? [modified] Pin
Luc Pattyn26-May-11 6:18
sitebuilderLuc Pattyn26-May-11 6:18 
AnswerRe: How to combine 3 different list objects into a single list object? Pin
SledgeHammer0126-May-11 6:21
SledgeHammer0126-May-11 6:21 
AnswerRe: How to combine 3 different list objects into a single list object? Pin
dasblinkenlight26-May-11 6:35
dasblinkenlight26-May-11 6:35 
GeneralRe: How to combine 3 different list objects into a single list object? Pin
Sanjay J Patolia27-May-11 1:09
Sanjay J Patolia27-May-11 1:09 
AnswerRe: How to combine 3 different list objects into a single list object? Pin
V.26-May-11 23:27
professionalV.26-May-11 23:27 
AnswerRe: How to combine 3 different list objects into a single list object? Pin
BobJanova26-May-11 23:42
BobJanova26-May-11 23:42 
Question(Outlook 2007 add-ins) custom attach file button [modified] Pin
kharisma16526-May-11 3:43
kharisma16526-May-11 3:43 
Hello All gurus in C#

Currently I'm developing add-ins for MS Outlook 2007
the idea is, I want to protect my file with some kind of encryption
before attach it into my email.

I have created Outlook form region that applies for Inspector in composing mode and reading mode,
so the add-ins will only appears in composing new mail and appears in reading mail.

I faced some problems, like
1) I cannot attach file programmaticaly to the current Composing Mail Windows
2) I cannot extract file programmatically from the current Reading Mail Windows

I've tried to modify some code from MSDN, but I stuck in the middle

using Office = Microsoft.Office.Core;
using Outlook = Microsoft.Office.Interop.Outlook;

private void button1_Click(object sender, EventArgs e)
{
      Outlook.MailItem MyMail = Globals.ThisAddIn.Application.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;

      OpenFileDialog attachment = new OpenFileDialog();
      OpenFileDialog.show();

            if (attachment.FileName.Length > 0)
            {
                MyMail.Attachments.Add(attachment.FileName, Outlook.OlAttachmentType.olByValue, 1, attachment.FileName);
            }

}


Thanks Smile | :)
QuestionProblem when starting Windows Phone 7 Emulator Pin
nstk26-May-11 2:04
nstk26-May-11 2:04 
AnswerRe: Problem when starting Windows Phone 7 Emulator Pin
Not Active26-May-11 2:30
mentorNot Active26-May-11 2:30 
GeneralRe: Problem when starting Windows Phone 7 Emulator Pin
nstk26-May-11 5:04
nstk26-May-11 5:04 
GeneralRe: Problem when starting Windows Phone 7 Emulator Pin
Not Active26-May-11 5:14
mentorNot Active26-May-11 5:14 
GeneralRe: Problem when starting Windows Phone 7 Emulator Pin
nstk26-May-11 6:22
nstk26-May-11 6:22 
GeneralRe: Problem when starting Windows Phone 7 Emulator Pin
Mark Salsbery26-May-11 11:04
Mark Salsbery26-May-11 11:04 
GeneralRe: Problem when starting Windows Phone 7 Emulator [modified] Pin
nstk27-May-11 1:33
nstk27-May-11 1:33 
GeneralRe: Problem when starting Windows Phone 7 Emulator Pin
Mark Salsbery27-May-11 9:14
Mark Salsbery27-May-11 9:14 
GeneralRe: Problem when starting Windows Phone 7 Emulator Pin
nstk28-May-11 3:09
nstk28-May-11 3:09 
GeneralRe: Problem when starting Windows Phone 7 Emulator Pin
Mark Salsbery28-May-11 5:42
Mark Salsbery28-May-11 5:42 
GeneralRe: Problem when starting Windows Phone 7 Emulator Pin
nstk28-May-11 21:41
nstk28-May-11 21:41 
QuestionDataReader To DataTable Pin
Alexandra - Marie Schembri26-May-11 1:22
Alexandra - Marie Schembri26-May-11 1:22 
AnswerRe: DataReader To DataTable Pin
Blue_Boy26-May-11 1:28
Blue_Boy26-May-11 1:28 
AnswerRe: DataReader To DataTable [modified] Pin
Luc Pattyn26-May-11 1:41
sitebuilderLuc Pattyn26-May-11 1:41 
AnswerRe: DataReader To DataTable Pin
PIEBALDconsult26-May-11 2:51
mvePIEBALDconsult26-May-11 2:51 
AnswerRe: DataReader To DataTable Pin
Dhyanga26-May-11 4:43
Dhyanga26-May-11 4:43 
GeneralRe: DataReader To DataTable Pin
Luc Pattyn26-May-11 5:31
sitebuilderLuc Pattyn26-May-11 5:31 

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.