473,785 Members | 2,794 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Batch control updates?

How do I prevent repainting while updating a batch of controls?
Datagrids have functions to do this, but many other controls do not. I
have a large number of controls that I update a few times a second, and
everytime I set a property of each control the form is redrawn. I
would like to suppress redrawing until I am done updating all the
controls.

Also the member function that is in the form class that iterates
through the controls to be updated has to use Control.Invoke to update
the controls because the member function is called by an event that is
fired from another thread. Even if it is fired asynchronously, I still
have to marshall the control update call to the UI thread using
Control.Invoke. It would be nice if I could marshall the entire member
function call to the UI thread so that each individual control update
doesn't have to be udpated. But from what I've found so far, it seems
to not be possible.

Thanks in advance for any suggestions.

Nov 17 '05 #1
0 936

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

Similar topics

5
2052
by: Tyler Hudson | last post by:
After reading Erland Sommarskog's most enlightening articles on SQL Server 2000's error handling capabilities (http://www.sommarskog.se/error-handling-I.html and http://www.sommarskog.se/error-handling-II.html) I have a question regarding batch cancellation caused by a client. Because a batch cancel request from a client does not cause a rollback, is there any danger of the commands that were executed in the batch before the client...
2
3593
by: Mats Mohlin | last post by:
We are runing a critical batchjob in DB2 V8 fp4 for AIX on a p630 with AIX 5.2 The job updates only 6 columns of the 100 columns in a 600 bytes wide row. The job is very IO bound because of log writes. We seems to be logging full rows 600 bytes per updated row. I thought DB2 should be clever enough to only log the modified columns ?? We also seems to write to the log with a lot of small writes, filemon -v -O lf output indicates
3
5064
by: Keith Wilby | last post by:
I have some code in my app that updates data by interrogating data from Artemis. It works fine, but I wondered if I'd be able to write a batch file which, at a predetermined time each day, would open the app 'silently' and run the code. I'm no whizz at batch files/DOS commands, but I've written them to open an Access app - it's the rest of it that I need advice about. How would I get the app to recognise that it was opened by the batch...
3
1429
by: Carl | last post by:
Hi, I have a from called frmBatchUpdate. On it I have created 10 text boxes in one column txtTRN1, txtTRN2 etc.. (Tenancy Reference Numbers) and another 10 to the right txtRPA1, txtRPA2 etc.. (RegularPaymentAmount) and one on it's own txtNewRPA. The left hand column is there to allow a user to enter a Tenancy Reference Number and when the focus is lost, the text box to the right of it displays the Regular Rent payment for that tenant.
1
1389
by: Rolan | last post by:
I would guess that someone has done this before, but I cannot seem to get it to work. In a given month, there are hundreds of updates received that need to be entered. It is obviously a slow and tedious task to import them one at a time. What I would like to do is to place all of the updates into one directory and import them all at one time. However, DoCmd.TransferText acImportDelim, , "Updates" , "C:\Item Updates\*.txt" , True does not...
3
4473
by: emman_54 | last post by:
Hi every one, I am trying to run a batch file using my asp.net application. I am using the Process class to run the batch file. When I run my web application, In the task manager, i could see cmd.exe with ASPNET as a user. But nothing happens. It can't execute the batch file. This is the code i am using to run the batch file:
4
18696
by: acantatore | last post by:
Hello! I'm looking for patterns, best practices, examples - reference material - that apply to Batch Processing, that is: Basic job control (start and stop) Job partitioning Parallel processing and distribution Fine-grained transaction control Error handling
16
2748
by: Richard Maher | last post by:
Hi, I have this Applet-hosted Socket connection to my server and in an ONevent/function I am retrieving all these lovely rows from the server and inserting them into the Select-List. (The on screen appearance of the Select List grows for the first 5 rows then the scroll bar appears if there's more). So far so good. . . The problem is that none of the rows I'm inserting appear on the screen until I have RETURNed from my function; so If...
2
1268
by: rbrowning1958 | last post by:
Hello, Doing my first ASP project so this may be simple and I'm missing something...could someone please calrify this for me? 1. I have an ASP page with a grich which allows user to add, edit and delete records. 2. The grid is linked to an objectdatasource which points to a business class
0
9645
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
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10092
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,...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8974
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
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
6740
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
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.