Click here to Skip to main content
15,898,895 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting VB.NET 2.0 Strings.Chr Pin
Christian Graus9-Aug-06 11:53
protectorChristian Graus9-Aug-06 11:53 
GeneralRe: Converting VB.NET 2.0 Strings.Chr Pin
DocH0liday9-Aug-06 12:05
DocH0liday9-Aug-06 12:05 
GeneralRe: Converting VB.NET 2.0 Strings.Chr Pin
Christian Graus9-Aug-06 12:15
protectorChristian Graus9-Aug-06 12:15 
GeneralRe: Converting VB.NET 2.0 Strings.Chr Pin
DocH0liday9-Aug-06 12:44
DocH0liday9-Aug-06 12:44 
GeneralRe: Converting VB.NET 2.0 Strings.Chr Pin
Christian Graus9-Aug-06 14:07
protectorChristian Graus9-Aug-06 14:07 
QuestionIndexers Pin
erikkl20009-Aug-06 10:36
erikkl20009-Aug-06 10:36 
AnswerRe: Indexers Pin
Christian Graus9-Aug-06 11:48
protectorChristian Graus9-Aug-06 11:48 
QuestionMAPI and C# Pin
mbnbonin9-Aug-06 9:32
mbnbonin9-Aug-06 9:32 
I would like to know how to move an e-mail item from Inbox to another folder using C# and MAPI.

TO MOVE THE ITEM I USED THE FOLLOW LINE:
message.MoveTo(oStored_ID, oStored_ID);

AND TO GET THE VARIABLES oStored_ID AND oStored_ID I USED THE FOLLOW LINES:

foreach(MAPI.InfoStore Is in (IEnumerable)session.InfoStores)
{
MapiFolderRoot = (MAPI.Folder)Is.RootFolder;
MapiFolders = (MAPI.Folders)MapiFolderRoot.Folders;
MapiFolder = (MAPI.Folder)MapiFolders.GetFirst();
while (MapiFolder != null)
{
if (MapiFolder.Name.ToString() == "Lidos")
bolMoverEmail=true;
oFolder_ID = MapiFolder.FolderID;
oStored_ID = MapiFolder.StoreID;
}
MapiFolder = (MAPI.Folder)MapiFolders.GetNext();
}
}

However when I execute the line:
message.MoveTo(oStored_ID, oStored_ID);

the item disappears from the Inbox folder but is not moving to another folder which name is "Lidos".

Thanks for your help.


Manoel Bonin
AnswerRe: MAPI and C# Pin
mav.northwind9-Aug-06 21:05
mav.northwind9-Aug-06 21:05 
GeneralRe: MAPI and C# Pin
mbnbonin10-Aug-06 11:24
mbnbonin10-Aug-06 11:24 
AnswerRe: MAPI and C# Pin
ylhyh26-May-09 20:36
ylhyh26-May-09 20:36 
QuestionGlobal events or messaging. Pin
Larantz9-Aug-06 8:24
Larantz9-Aug-06 8:24 
AnswerRe: Global events or messaging. Pin
Not Active9-Aug-06 9:39
mentorNot Active9-Aug-06 9:39 
GeneralRe: Global events or messaging. Pin
mbnbonin9-Aug-06 9:43
mbnbonin9-Aug-06 9:43 
GeneralRe: Global events or messaging. Pin
Not Active9-Aug-06 14:58
mentorNot Active9-Aug-06 14:58 
GeneralRe: Global events or messaging. [modified] Pin
Larantz10-Aug-06 23:14
Larantz10-Aug-06 23:14 
Questionhow to call functions in unmanaged C++ dll from C# app Pin
moniqui9-Aug-06 8:09
moniqui9-Aug-06 8:09 
AnswerRe: how to call functions in unmanaged C++ dll from C# app Pin
Judah Gabriel Himango9-Aug-06 9:01
sponsorJudah Gabriel Himango9-Aug-06 9:01 
GeneralRe: how to call functions in unmanaged C++ dll from C# app Pin
moniqui9-Aug-06 9:30
moniqui9-Aug-06 9:30 
GeneralRe: how to call functions in unmanaged C++ dll from C# app Pin
Judah Gabriel Himango9-Aug-06 13:08
sponsorJudah Gabriel Himango9-Aug-06 13:08 
GeneralRe: how to call functions in unmanaged C++ dll from C# app Pin
moniqui10-Aug-06 10:59
moniqui10-Aug-06 10:59 
GeneralRe: how to call functions in unmanaged C++ dll from C# app Pin
Judah Gabriel Himango11-Aug-06 4:29
sponsorJudah Gabriel Himango11-Aug-06 4:29 
AnswerRe: how to call functions in unmanaged C++ dll from C# app Pin
Eric Dahlvang9-Aug-06 10:35
Eric Dahlvang9-Aug-06 10:35 
QuestionUser controls, delegates and the designer Pin
Wjousts9-Aug-06 5:20
Wjousts9-Aug-06 5:20 
AnswerRe: User controls, delegates and the designer Pin
Ed.Poore9-Aug-06 5:25
Ed.Poore9-Aug-06 5:25 

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.