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

No Screen Updates while processing in Visual Basic

Hi,

I am using Visual Basic 2008 to create some databases. It reads data from textfiles and puts them in SQL databases. After the user presses the Process button I would like to give the user to get some feedback of the process simply by for example label1.text += "Processing File 2".
But during the process no Screen Updates are made...only after all databases are processed and VB.net is waiting for new user response it updates my label1.text.
Is there any setting to change this are a better way to give user feedback during a process ?

Thanks in advance !
Jul 25 '09 #1
4 5133
chrisli
11
I dont know, how is your code build up...but..why don't you use a loop, to go through all the files and after every file you can set your label text or something like that.
Jul 27 '09 #2
Frinavale
9,735 Expert Mod 8TB
Chrisli's recommendation of using a loop is great.

The only thing that you have to remember is to actually refresh the UI (User Interface) when you want to display an update on the progress.

To do this use the Control.Update method. This method causes the control to redraw.

-Frinny
Jul 27 '09 #3
Plater
7,872 Expert 4TB
If you want to keep sections of your window from turning white (un-updated) when other windows cover them, be sure to call Application.DoEvents() in your loop.
Jul 29 '09 #4
raids51
59
Like Plater said, make sure to put application.doevents somewhere in your loop. If your loop is going to take a long time to finish you also might want to think about putting it into another thread... i wouldnt recomment it though because it can get hard to do cross threading communication
Aug 18 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Timmah | last post by:
I have a Visual Basic menu script that I am trying to get to clear the dos screen it is running in. Basically, you select an option from the menu, and after the processing is complete, a "press...
0
by: wouter | last post by:
Dear experts, ** apologies for cross-posting ** I am trying to write a batch file in visual basic that identifies either "the-window-that-was-last-launched" or "the-window-having-the-focus"...
3
by: Shmulik | last post by:
I have an application written in C# that creates a queue of items to process, connects via a TCP connection to a server on a Unix box, and then passes data files to the Unix box for processing...
0
by: Ganapathy | last post by:
I have COM dll code written in VC 6.0. When i tried compiling this code in VC 7, The MIDL cmpiler gets called twice. i.e. it initially compiles fully & immediately a line - 64 bit processing'...
606
by: Neil Zanella | last post by:
Hello, I am trying to update an MS access database from ASP.NET. I am using IIS on Windows XP Pro. I can issue SELECT statements from ASP.NET using ADO.NET but I cannot seem to be able to carry...
6
by: Bruce A. Julseth | last post by:
Will in MS VS .NET, Visual Basic, I click on Help -> Check for Updates, I get a dialog that ask me to wait while it checks for updates. Then I get an error dialog that states "Visual Studio .NET...
1
by: Vayse | last post by:
In VS2005, clicking on Help/Check for Updates is no longer working. Is there an address I can check to see if I'm on the latest version? Thanks Vayse P.S. Currently on: Microsoft Visual Studio...
0
by: fiona | last post by:
FOR IMMEDIATE RELEASE Catalyst release low cost logic processing tool 87% of defects in software are errors in logic Yucca Valley, CA, September 2006 - Catalyst Development Corporation,...
4
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.