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

Display Issues with VB App

2
I have a data aquisition program written in VB6 that suffers from sporadic graphical issues. The UI is full-screen and at various times while the program is running, specifically when the computer is communicating with the data acquisition system or completing sample, large white boxes will show up and odscure the display. Once the sample has completed and the screen is refreshed, these will go away. I believe that I have an adequate number of refreshes right now. As mentioned previously, this problem occurs most often during a data acquisition and no information is actually changing on the UI. I'm really scratching my head on this and would very much like to resolve it. It is a great nuisance on the end-user. Are there any ideas on what could be causing this or what I could do to correct it?
Jan 31 '07 #1
3 1513
willakawill
1,646 1GB
Hi. Sounds like you just have to put up with it or write multi threaded code that puts screen refresh on a different thread from your data processes. Anytime there is heavy processing going on the screen refresh takes second place. The only thing that I can think of that will get you out of this sometimes is liberal use of DoEvents. This pauses your data processes to allow windows to update the GUI etc.

Good luck
Jan 31 '07 #2
mrgasc
2
Hi. Sounds like you just have to put up with it or write multi threaded code that puts screen refresh on a different thread from your data processes. Anytime there is heavy processing going on the screen refresh takes second place. The only thing that I can think of that will get you out of this sometimes is liberal use of DoEvents. This pauses your data processes to allow windows to update the GUI etc.

Good luck
Well, that's a bummer. I've experimented with DoEvents, as well as Refresh and GotFocus, but I have yet to find the "magic bullet" that corrects the problem. Thanks a lot for the reply.
Jan 31 '07 #3
Killer42
8,435 Expert 8TB
Well, that's a bummer. I've experimented with DoEvents, as well as Refresh and GotFocus, but I have yet to find the "magic bullet" that corrects the problem. Thanks a lot for the reply.
There may not be much you can do along these lines, because (I'm guessing here) control probably doesn't return to your code until after the communication. Hence you can't do anything while it's in progress.

I can think of a couple of ideas to try out, though.
  • Perhaps your last refresh before the communication pause is being interrupted. Could you introduce a slight pause (including DoEvents to allow Windows to do its thing) before hitting the comms? This is a long shot, admittedly.
  • Have you tried locking the window to prevent any updating until control comes back? I have no idea whether this will work, but check out the API call - um, it's something like LockWindowUpdate. Perhaps "freezing" the window will prevent the boxes appearing. Grasping at another straw here of course, but you never know your luck until you try.
Feb 1 '07 #4

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

Similar topics

1
by: David Thielen | last post by:
Hi; I would like to display a page then immediately cause a post back (the 1st page will have a big "working..." on it, then in the post back do my query which will take a couple of seconds, and...
2
by: Vikas Kumar | last post by:
How to Display the Map from the Shape files in ASP.NET?
3
by: c676228 | last post by:
Hi everyone, I have a piece of code in sales.aspx.vb like this: Protected WithEvents Message As System.Web.UI.WebControls.Label Try ... ChartImage.ImageUrl = "ChartGenerator.aspx?" + DataStr +...
7
by: Janis | last post by:
I try to understand what could be the source of a problem with displaying and hiding rows of tables using display:block/none. I've read selfhtml but could not find any hint about that. Any...
7
by: =?Utf-8?B?aWxy?= | last post by:
Hi I have a table in an sql database that contains data that has been encrypted using the DPAPI. What I am trying to achieve is to bind several controls on a vb 2005 windows form to those...
14
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So,...
2
by: Victor | last post by:
Hi guys i am facing a real big problem here. I bought a hosting plan and try to build my own website. my website has several language version(chinese english japanese). but i just found out the...
1
by: Wingot | last post by:
Hey, I have an application codenamed WingFlex. It has a number of aspects to it, but the prudent parts for this problem are all within the "Client" Schema. The Client schema has three tables...
10
by: Lorie0114 | last post by:
Hello, We have an issue that I do not know how to resolve. Our website has several hundred reports. There are a handful of them that are causing issues when there is no interaction for a couple...
4
by: eschneider | last post by:
I get the following error when trying to browse the .asmx. I get the same thing when trying to add a reference. using .NET 2.0 There is no error message. Any ideas? Thanks,
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.