473,386 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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
Nov 20 '07 #1
4 1200
federico,

Did you try calling the textbox's Refresh method after placing text into the
textbox?

Kerry Moorman
"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
Nov 20 '07 #2
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

"federico" <fe******@michosa.comwrote in message
news:%2****************@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

Nov 20 '07 #3
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

Nov 20 '07 #4
Thank you very much. Your advice is very helpfull

federico
"federico" <fe******@michosa.comwrote in message
news:%2****************@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

Nov 21 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Christopher Subich | last post by:
As a hobby project, I'm writing a MUD client -- this scratches an itch, and is also a good excuse to become familiar with the Python language. I have a conceptual handle on most of the...
5
by: carqs123 | last post by:
I have an application that does alot of work and calculations. It updates it's internal status on a windows form. When I debug single step the numbers appear just right on the form. When I run...
4
by: T.H.N. | last post by:
I'm trying to work out a database design to make it quicker for my client program to read and display updates to the data set. Currently it reads in the entire data set again after each change,...
4
by: Tomasz Jastrzebski | last post by:
Hello Everyone, I have a GridView control bound to a plain DataTable object. AutoGenerateEditButton is set to true, Edit button gets displayed, and RowEditing event fires as expected.
4
by: Ty | last post by:
Hi all Short version of my problem: i have a Datagrid (Flexgrid from ComponentOne) with a Datatable as source. I need to search a row in the datatable, using a primary key column in the...
0
by: Andy B | last post by:
I have a GridView with a LINQDataSource attached to it. My code in the aspx markup is below. I need to know why only the checkbox field for the activated column is getting updated (the...
3
by: Avi | last post by:
Hi all, I have a web page with Multiline TextBox. Every 3 seconds I refresh the page and display all received messages in this TextBox. When the TextBox is updated (The Text property is set). ...
1
by: cerilocke | last post by:
I have a repeater in which I have a hidden field (input type = hidden), a textbox (asp:TextBox), a checkbox (input type = checkbox) and a label (asp:Label). I have bound all four items to the same...
1
by: markla | last post by:
Hi, Can someone help me understand why for the code below, when added as a "FieldTemplate" in Dynamic Data, and rendered for a field, does not trigger the "test" function and hence update the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.