|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
fast updates to textbox?Hello I have an application that iterates through the messages of a mailbox.
The program does fine the job of moving messages that match a criteria. I would like to add to the program the capablity of displaying a progress window. Ideally, the progress window should have a textbox control that display very fast the subject of each email it is examining. The user would not be able to read the contents of the textbox, but he would be happy knowing that the program is working. I tried serveral combinations of suspendlayout, resumelayout, performlayout, but nothing seem to work. Any advice you could give me will be greatly appreciated. federico federico,
Did you try calling the textbox's Refresh method after placing text into the textbox? Kerry Moorman Show quoteHide quote "federico" wrote: > Hello I have an application that iterates through the messages of a mailbox. > The program does fine the job of moving messages that match a criteria. I > would like to add to the program the capablity of displaying a progress > window. Ideally, the progress window should have a textbox control that > display very fast the subject of each email it is examining. The user would > not be able to read the contents of the textbox, but he would be happy > knowing that the program is working. > > I tried serveral combinations of suspendlayout, resumelayout, performlayout, > but nothing seem to work. > > Any advice you could give me will be greatly appreciated. > > federico > > > Fedrico,
Have you thought about a StatusBar control to display this as a Status. Secondly, you could also think about Application.DoEvents and here is some more food for thought http://www.codinghorror.com/blog/archives/000370.html Regards, Trevor Benedict MCSD Show quoteHide quote "federico" <feder***@michosa.com> wrote in message news:%23wc7SHxKIHA.1184@TK2MSFTNGP04.phx.gbl... > Hello I have an application that iterates through the messages of a > mailbox. The program does fine the job of moving messages that match a > criteria. I would like to add to the program the capablity of displaying a > progress window. Ideally, the progress window should have a textbox > control that display very fast the subject of each email it is examining. > The user would not be able to read the contents of the textbox, but he > would be happy knowing that the program is working. > > I tried serveral combinations of suspendlayout, resumelayout, > performlayout, but nothing seem to work. > > Any advice you could give me will be greatly appreciated. > > federico > federico,
The do events does this job, however be aware that you are slowing your program down. The do events on one side and by painting on the other side. Painting is the most time expensive part of almost every program. Cor Thank you very much. Your advice is very helpfull
federico Show quoteHide quote "federico" <feder***@michosa.com> wrote in message news:%23wc7SHxKIHA.1184@TK2MSFTNGP04.phx.gbl... > Hello I have an application that iterates through the messages of a > mailbox. The program does fine the job of moving messages that match a > criteria. I would like to add to the program the capablity of displaying a > progress window. Ideally, the progress window should have a textbox > control that display very fast the subject of each email it is examining. > The user would not be able to read the contents of the textbox, but he > would be happy knowing that the program is working. > > I tried serveral combinations of suspendlayout, resumelayout, > performlayout, but nothing seem to work. > > Any advice you could give me will be greatly appreciated. > > federico >
Type inference
Read very large file in bytearray and upload to MSSQL dataset question how do you implement association between objects Check if libraries or program exist Web Server Read/Write error with exe programs Emailing a form in Visual Basic 2005 Express Need to develop an IDE add-on that would behave similar to the Find in Entire Solution Form - controls is placed different on Vista than in XP |
|||||||||||||||||||||||