Home All Groups Group Topic Archive Search About

fast updates to textbox?

Author
20 Nov 2007 1:08 AM
federico
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

Author
20 Nov 2007 1:31 AM
Kerry Moorman
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
>
>
>
Author
20 Nov 2007 2:04 AM
Trevor Benedict
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
>
Author
20 Nov 2007 4:32 AM
Cor Ligthert[MVP]
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
Author
21 Nov 2007 12:09 AM
federico
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
>