Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compare values with List Pin
Wjousts3-Aug-06 3:23
Wjousts3-Aug-06 3:23 
GeneralRe: Compare values with List Pin
Ingo2-Aug-06 4:19
Ingo2-Aug-06 4:19 
GeneralRe: Compare values with List Pin
abnorm2-Aug-06 4:32
abnorm2-Aug-06 4:32 
GeneralRe: Compare values with List Pin
Ingo2-Aug-06 5:47
Ingo2-Aug-06 5:47 
Questionhow to draw ractangle in picturebox at runtime manually Pin
kalaveer2-Aug-06 3:18
kalaveer2-Aug-06 3:18 
AnswerRe: how to draw ractangle in picturebox at runtime manually Pin
Wjousts2-Aug-06 3:24
Wjousts2-Aug-06 3:24 
AnswerRe: how to draw ractangle in picturebox at runtime manually Pin
stancrm2-Aug-06 3:29
stancrm2-Aug-06 3:29 
QuestionGetting C# to pull Outlook e-mail when computer is locked Pin
matt23lucier2-Aug-06 3:04
matt23lucier2-Aug-06 3:04 
At the end of the day I shut down all my programs and then lock my computer. At around 7:00pm I have a sheduled task that runs a c# windows application. I want to add a feature to this application, that will enable it to retrieve e-mails that meet a certain criteria. The problem I am having is that once the computer is locked the program will attempt to run but will not be able to login to Outlook to retrieve the e-mails. The program is getting stuck because Outlook is asking for a Profile Name. This program runs perfectly when the computer is not locked (Outlook is also closed). Here is a sample of my code:

oApp = new Outlook.Application();
oNameSpace = oApp.GetNamespace("MAPI");
oNameSpace.Logon(null, null, true, true);
//For the above line I have even entered in my username and password
oInboxFolder =
oNameSpace.GetDefaultFolder (Outlook.OlDefaultFolders.olFolderInbox);
//The rest of the code is simply matching the criteria.

Any help in this matter would be greatly appreciated.
Thanks
Matt


AnswerRe: Getting C# to pull Outlook e-mail when computer is locked Pin
Corinna John2-Aug-06 3:52
Corinna John2-Aug-06 3:52 
GeneralRe: Getting C# to pull Outlook e-mail when computer is locked Pin
matt23lucier2-Aug-06 7:32
matt23lucier2-Aug-06 7:32 
QuestionDelete Registry settings in uninstall Pin
Saamir2-Aug-06 2:47
Saamir2-Aug-06 2:47 
AnswerRe: Delete Registry settings in uninstall Pin
Dustin Metzgar2-Aug-06 4:17
Dustin Metzgar2-Aug-06 4:17 
QuestionRe: Delete Registry settings in uninstall Pin
Saamir2-Aug-06 4:37
Saamir2-Aug-06 4:37 
AnswerRe: Delete Registry settings in uninstall Pin
Saamir2-Aug-06 5:04
Saamir2-Aug-06 5:04 
QuestionContainer control color Pin
~~~Johnny~~~2-Aug-06 2:47
~~~Johnny~~~2-Aug-06 2:47 
Questiontabcontrol problem ? help please ... Pin
cmpeng342-Aug-06 2:06
cmpeng342-Aug-06 2:06 
AnswerRe: tabcontrol problem ? help please ... Pin
Ravi Bhavnani2-Aug-06 2:34
professionalRavi Bhavnani2-Aug-06 2:34 
AnswerRe: tabcontrol problem ? help please ... Pin
rah_sin2-Aug-06 2:34
professionalrah_sin2-Aug-06 2:34 
AnswerRe: tabcontrol problem ? help please ... Pin
Stefan Troschuetz2-Aug-06 2:38
Stefan Troschuetz2-Aug-06 2:38 
AnswerRe: tabcontrol problem ? help please ... Pin
yueue2-Aug-06 4:45
yueue2-Aug-06 4:45 
Question" Syntax error in FROM clause " In OleDB . Pin
hdv2122-Aug-06 1:58
hdv2122-Aug-06 1:58 
AnswerRe: " Syntax error in FROM clause " In OleDB . Pin
Guffa2-Aug-06 2:18
Guffa2-Aug-06 2:18 
AnswerRe: " Syntax error in FROM clause " In OleDB . Pin
Colin Angus Mackay2-Aug-06 2:20
Colin Angus Mackay2-Aug-06 2:20 
AnswerRe: " Syntax error in FROM clause " In OleDB . Pin
albCode2-Aug-06 4:08
albCode2-Aug-06 4:08 
QuestionCustom Component Properties Pin
krieg382-Aug-06 1:28
krieg382-Aug-06 1:28 

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.