473,748 Members | 10,889 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

No Screen Updates while processing in Visual Basic

12 New Member
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 5160
chrisli
11 New Member
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 Recognized Expert Moderator Expert
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 Recognized Expert Expert
If you want to keep sections of your window from turning white (un-updated) when other windows cover them, be sure to call Application.DoE vents() in your loop.
Jul 29 '09 #4
raids51
59 New Member
Like Plater said, make sure to put application.doe vents 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
3232
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 enter to continue" comes up. When enter is pressed I'd like the DOS screen the script is running in to clear (and the menu to be displayed again). Is there any way to do this? I've tried many different things, but I seem to have trouble actually...
0
321
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" at a certain point in time, and that puts this window in a particular position on the screen, and holds it there.
3
2763
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 (cluster) - normally this works fine. However, on the front end, another Unix system generates and transfers files to the DotNet application (Management system/controller) and recently I've witnessed the following: 1) Unix Box "A" generates data...
0
1984
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' comes, followed by the 64 bit compilation of the IDl file. The comlpilation goes thro' the full stage and then the StdAfx.cpp is compiled. I have another similar VC 6 COM dll code that gets compiled without invoking the 64 bit processing of the...
606
14709
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 out INSERT statements. Here is the error which I am getting: Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.
6
1162
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 setup encountered errors while attemptin to download required files. Check your Web brower configuration settings and your connection hardware, and then try again." Where can I get the hot fix to for this problem: Microsoft Visual Studio ..NET...
1
1104
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 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727
0
1591
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, publisher of SocketWrench and SocketTools, today announced the release of its first application software, a logic processing software tool. LogicGem is designed to provide a familiar, easy-to-use way to create,
4
6975
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 just gotta fix it. I need to make some calculations on the measurements and VB6 is my language. Yes, the system mouse will corrupt the measurement, but it's an auditing function and that's acceptable.
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.