473,394 Members | 1,800 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,394 software developers and data experts.

Problem with form refreshing

I'm building an application with Visual Basic 2005. The application is
multi threaded. It has a record counter on the form that counts up to
completion. It works fine throughout the process as long as it remains
in top focus. If you bring another program to focus and then go back.
The form is not refreshed until the process is complete. I am calling
me.refresh() within the main process loop. Any ideas why this may
occurr?

Thanks,
Dave

Jun 13 '06 #1
2 1633
DMartin,

You mean that you have made a multithreading process that stops the
mainprocess to do in the background another process, that stops than and
your mainprocess is going on?

Is this meant to let the user click the abort cross in the top?

Have than a look about everything that is written about the backgroundworker
in Net 2.0

http://msdn2.microsoft.com/en-us/lib...undworker.aspx

You know of course that with this you lengthen the througput time of your
proccess.

I hope this helps,

Cor
<dm*******@hotmail.com> schreef in bericht
news:11**********************@h76g2000cwa.googlegr oups.com...
I'm building an application with Visual Basic 2005. The application is
multi threaded. It has a record counter on the form that counts up to
completion. It works fine throughout the process as long as it remains
in top focus. If you bring another program to focus and then go back.
The form is not refreshed until the process is complete. I am calling
me.refresh() within the main process loop. Any ideas why this may
occurr?

Thanks,
Dave

Jun 14 '06 #2
Not exactly, the application works like this. The main process loops
over data that needs to be processed via an XML service. Three worker
threads are initialized before the loop begins. Once it starts looping
through the data, it looks to see which thread is idle and sends the
current record to the idle thread. Inside the thread, the XML request
is sent, the return data processed, and the results stored into an
access database. In the main process loop, there is record counter
thats displayed on the form the show the current progress. Every time
the record counter is incremented and stored into the textbox, the
form.refresh() command is called. As long as the form stays focused
throughout the process, the refresh works fine. If you send it to the
background and then bring it into focus again. You get not refreshing
until the process completes.

Jun 14 '06 #3

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

Similar topics

1
by: LRD | last post by:
Form not refreshing after autopostback unless keyboard or mouse move Hi, We created several new ASP.NET C# forms for our intranet. In each form we use panels for different sections of the...
4
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem...
1
by: James | last post by:
I have a data grid refresh problem. I have a few columns and the first column is data in the form of numbers. And in the form of the data grid if I specify for example something like a code(in a...
5
by: Jeff | last post by:
IDE: VS 2003 :NET OS: XP Pro My app have a form with a tab-control on it. The tab-control have 2 tabpages. One of the tabpages displays a datagrid, and the other tabpage displays details (order...
4
by: John Tyce | last post by:
The problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates...
1
by: Robert Clark | last post by:
This a pocket pc/smartphone questions mainly, but i thought i'd ask the question in the C# newsgroup. I have a form which i use to display information from a web service. From this form i open...
2
by: AJang | last post by:
My windows form "Form1" has one Button "button1" and one TextBox "textBox1". When I click button1, it do a job for each file in a directory. The job include some platform invoke call. Before...
1
by: sbettadpur | last post by:
hi, here i am facing some problem regarding the page refresh below i am sending my code please go through... in that i am including head.php, content.php, foot.php files into a single file...
4
by: prodigyjohn | last post by:
Hai Everybody, I am new to Java coding; I want to solve a problem in Jsp and servlet. Here I am having a pop in main-form, when the pop is pressed it will pass to the sub-form. After...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.