|
HI..
Im trying to move mails that have come into my inbox, that have a specific subject into a subfolder in my inbox. Im trying to do this using a c# application. Ive been working on this the whole day, cant seem to get it.
Also whenever i use the Folder.Folders methods i get a 'Microsoft.Office.Interop.Outlook.MAPIFolder.Folders' is a property but is used like a method error. this is how i use it:
Subfolder = namespace_.Application.Session.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox).Folders("Requests");
Thanks
|
|
|
|
|
Change
Subfolder = namespace_.Application.Session.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox).Folders("Requests"); to
Subfolder = namespace_.Application.Session.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox).Folders["Requests"];
|
|
|
|
|
Thank you!!! IT WORKS.. IT WORKS.. IT WORKS.
been struggling with it for days.
heres why i needed it: i have a web app which sends 'requests' these requests are than saved to a database and sends an email to the administrator notifying them that a new request has come in.
now the problem was that in my desktop app i used a timer to check inbox every couple of seconds.. and each time it would read the same message and say there is a new messge. so just wanted to move the request into their own folder so that when the inbox is checked there shouldnt be any new request as they would be in their own folder.
didnt want to mark them as unread!!
(hope this makes sense ).
|
|
|
|
|
It does make sense. Could you not have used an Inbox rule to accomplish the same thing?
|
|
|
|
|
if i were using an inbox rule.. wouldnt i have had to go directly into outlook and make the rule? if so, thats what i was trying to avoid! whats the point of coding than? just wanted everything to be done without me going into outlook.
|
|
|
|
|
My bad - for some reason, I was thinking you could do this with Exchange - but I can't find anything in there. Oh well - curse my faulty memory.
|
|
|
|
|
In .Net 2003 I'm creating a simple text editor app using a rich textbox, a menu, a status bar and a toolbar.
Inside the Windows Form Designer generated code, it errors on this line
this.imageList1.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
with the message
An unhandled exception of type 'System.Resources.MissingManifestResourceException'
occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the specified culture
(or the neutral culture) in the given assembly. Make sure "Form1.resources" was correctly embedded
or linked into assembly "Editor".
baseName: Form1 locationInfo: Samples.Editor.Form1 resource file name: Form1.resources assembly: Editor,
Version=1.0.3160.18184, Culture=neutral, PublicKeyToken=null
The toolbar gets its images from the ImageList. This was alll working up until a few moments ago. I changed a method relating to saving the file, and when I ran it again, it errored.
All the images are missing out of the image list. If I leave them out and run it, it works fine. If I readd the images and run it, it errors again.
Anyone know what it going on?
Everything makes sense in someone's mind
|
|
|
|
|
Did you try to search on google?[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
No I didn't because I wasn't sure what part of that redicoulsy long message to search for. Add to that the message is typically cryptic of all MS errors, so it's hard to know WTF it's talking about.
Finally, the article at the link you pointed me to speaks of the problem stemming from changing the name of a class. I have not changed any names in my project.
Everything makes sense in someone's mind
|
|
|
|
|
Have you tried .NET 2.0 or 3.0? Microsoft gives away a free version a VS 2008.
Chuck Norris has the greatest Poker-Face of all time. He won the 1983 World Series of Poker, despite holding only a Joker, a Get out of Jail Free Monopoloy card, a 2 of clubs, 7 of spades and a green #4 card from the game UNO. In the movie "The Matrix", Chuck Norris is the Matrix. If you pay close attention in the green "falling code" scenes, you can make out the faint texture of his beard. Chuck Norris actually owns IBM. It was an extremely hostile takeover.
|
|
|
|
|
AKA, what can I do to decrease the friction.
I probably spend on average 2 to 3 hours of a 40 hour work week struggling with windows-b-crazy problems. Locked up software, processes taking far too long to start-up/shut down, interminable restarts, etc etc etc.
In your experience is this average? I'm really feeling the frustration and if I can do something about it I would love to.
I am running Windows XP sp2, and our company sysadmin is unlikely to let me go to anything else. Either way, I am a constant user of VS2008, VS2003 (usually have 2 or 3 of those open) and Toad so even if I switched I would have to have windows open in a virtual machine which I don't think would be of any real advantage.
Also I could request a computer upgrade but I know little enough about hardware that I wouldn't know what to recommend, I've already got an Intel dual core with 2.66GHz and 2 gig of RAM and my mem/CPU usage is rarely at 100%.
Any ideas?
|
|
|
|
|
Wrong Forum
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
whoops, thought I was in the lounge
|
|
|
|
|
Exactly zero. And I use vista.
|
|
|
|
|
As I'm not a glazier, none.
|
|
|
|
|
One who sets glass? Seriously, I would love to fix this, but its not one problem just a general crappiness so I don't even know where to start.
|
|
|
|
|
Exactly zero. And I use XP sp2.
led mike
|
|
|
|
|
Exactly zero. And I use vista.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Togakangaroo wrote: Any ideas?
Get a sysadmin that can provide you a working machine!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Exactly 0. That's because i use a MAC. Get with the times!
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Are you running VS on your mac? I can certainly push for an exception to the PCs only rule to be made in my case. Also, is there any decent oracle clients for macs? As far as I know there is only toad and thats windows only.
I have a friend who runs visual studio in an invisible virtual machine on his macbook but he doesn't use it anywhere near as often as I do so I'm still curious to hear from people if it still has all the same problems or even more
|
|
|
|
|
Togakangaroo wrote: Are you running VS on your mac?
VS is only for windows.
Togakangaroo wrote: Also, is there any decent oracle clients for macs? As far as I know there is only toad and thats windows only.
Not sure about that, i doubt it though.
Togakangaroo wrote: I have a friend who runs visual studio in an invisible virtual machine on his macbook but he doesn't use it anywhere near as often as I do so I'm still curious to hear from people if it still has all the same problems or even more
I run windows xp 64bit through vmware. The only thing installed on my virtual machine is visual studio and some other microsoft products. Everything else i use with the mac. With Vmware there is a feature called Unity[^] where you can seamlessly host windows applications in a mac environment. I've ran windows, played video games, and work on my mac without any problems!
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
teejayem wrote: With Vmware there is a feature called Unity[^] where you can seamlessly host windows applications in a mac environment.
I've seen demos of that before. Does it really work as nicely as marketing would have you think, and does anyone know when it's going to be ported to the rest of their platforms?
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
dan neely wrote: I've seen demos of that before. Does it really work as nicely as marketing would have you think
It is very good for what it's doing really. Only "kink" is that if you move the window around really fast it won't repaint right away (like .5 sec delay maybe). But as far as typing, mouse movement, and responsiveness i think it is definitely a 9.
Also, another issue is that you can't use vista's aero glass through the vm (but you can use full vista thru bootcamp). I believe the highest version of direct x vmware supports is v9. I really wasn't feeling the vista w/o aero and i really wanted to run both os's side by side.
Like christian said below, it really is a dream how nice windows runs on a mac. It is very smooth and with minimal software installed in windows it runs so much faster.
Don't be overcome by evil, but overcome evil with good
|
|
|
|