I wand to read mail text and attachments from mail server(mailbox folder). If the message contains any image (in attachment also) then I want to pick that image and save it to desired location. Please help me to sort out this problem or send me any link for the same
Thanks in advance.
That's a good start but its a bit more grim than that. Attachments are stored according to the MIME specification usually in base64. So, having got the content of the mail you need a mime parser to turn the attachments into something usable. I'd look at 3rd party components to help you with this.
Hi Yuvi Panda T
Thanks for your response. It respond me when it got new message. It just display , “has 1 message” in status box, but What is message number and which number should I pass in message number box.
This is my code below..the problem ofcourse progress bar once started works fine..after browsing thru other forms and returning back to this form only repaints it when progress bar functionality is complete.
This way it doesn't make much sense. You are starting a thread which calls Progress in the GUI thread (which will block all repainting because of the Thread.Sleep).
It should more look like the following:
privatevoid button2_Click(object sender, EventArgs e)
demothread = new Thread(new ThreadStart(ProgSafe));
for (int i = 0; i < 100; i++)
this.progressBar1.Value += 1;
Now the whole work is done in the thread and just the update of the progress bar is delegated to the GUI thread.
I have a form with a ListView. When the user dbl clicks a row in the listview, a new window with data regarding this row pops up. I want to prevent the user from being able to open more than one window like this at a time.
A nice solution would be to replace the already opened window should the user try and open a second. How would I go about doing this? I'm kind of new working with winforms...
I have the need to add a phantom "All Selections" item to a databound combo box, but inserting a new item into the data binding source results in source collection also having the "All Selections" item throughout the entire project, which is not desired.
So what's the best practice way of inserting a phantom item into a data bound combo box, so it doesn't mess up the underlying data source?
You can create a class which wraps the actual data source, and exposes an augmented version of the data source with the extra item(s) in the list. Then bind the ComboBox to an instance of the wrapper class.
Last Visit: 31-Dec-99 19:00 Last Update: 2-Dec-23 6:05