You might be able to create a thread to sort the items and once that thread has finished then you can say that sorting has finished. You may run into a few problems because I think that using multiple threads to update UIs is messy, your best bet might be to disable the ListView first thus ensuring that the user can't change anything inside it.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
If you posted some code, we could perhaps suggest where it was broken. Obviously, the answer is to lock bits and edit the pixels, so you're doing something wrong. My image processing articles have lots of examples on how to do this, they are on this site, just search for graus and you'll find them
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...