473,406 Members | 2,217 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,406 software developers and data experts.

Controls method:Invalidate(), Refresh() and Update()

Amy
What's different between Controls method Refresh() and
Invalidate(), Refresh() and Update()?

Your help will be appreciated. Thanks.
Nov 15 '05 #1
1 14079
Amy,
Control.Refresh - does an Control.Invalidate followed by Control.Update.

Control.Invalidate - invalidates a specific region of the Control (defaults
to
entire client area) and causes a paint message to be sent to the control.

Control.Update - causes the Paint event to occur immediately (Windows will
normally
wait until there are no other messages for the window to process, before
raising the Paint event).

The paint event of course is where all the drawing of your form occurs. Note
there is only one pending Paint event, if you call Invalidate 3 times, you
will still only receive one Paint event.

Hope this helps
Jay
"Amy" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
What's different between Controls method Refresh() and
Invalidate(), Refresh() and Update()?

Your help will be appreciated. Thanks.

Nov 15 '05 #2

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

Similar topics

3
by: hmoulding | last post by:
When I advance a form from one record to the next, all of the bound controls update fine. How do I get unbound controls to update, as well? E.g. a drop-down lists records in another table that are...
4
by: Lenster | last post by:
Hi I'm using bound controls on a windows form such as textboxes, checkboxes etc. which work fine except for one thing... If you click on a checkbox for example its value changes visibly and...
2
by: Nir.Hazan | last post by:
When I try to update my GridView I get the error: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: CustomerID, EmployeeID, OrderDate,...
1
by: Scott F K Hooper | last post by:
My ASP.NET 2.0 project has a GridView that I want to be able to edit and update records with. The GridView has been bound to an ObjectDataSource control that has the following Update method...
6
by: bryanbabula | last post by:
I have a question about overriding i was wondering if anyone could help me with, or even suggesting a better/different way. I have no idea if this can even be done or not. I was wondering if there...
2
by: Dave | last post by:
I only do ASP part time so this is a beginner question. I will attempt to make this a starightforward question... Is there any technique to keep values a user types into databound controls...
0
by: chrisexv6 | last post by:
Here's an interesting issue: if I open a .SLN file thru Visual Studio, "Build Web Site" and run it, the AJAX stuff refreshes the whole page. However, if I go into VS and do File, Open Web Site,...
4
by: tim.cavins | last post by:
I have a GridView populated by an ObjectDataSource. I am having issues passing the parameters to the objectdatasource. I have verified that the method is being called but none of the parameters...
3
by: RAG2007 | last post by:
I'm using the QueryDef and Execute method to update a record in my MySQL backend. Problem: When the Passthrough update query is defined using QueryDef, it becomes a select query, and I cannot use...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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,...

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.