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

Is Control.Invalidate() the same as Control.Refresh ?

Refresh says:
-Forces the control to invalidate its client area and immediately redraw
itself and any child controls.
Not the Menu for example?

While Invalidate() says:
-Invalidates the entire surface of the control and causes the control to be
redrawn.

Does "the entire surface" mean more then the client area?
Including the menu?
Not the child controls?

-Calling the Invalidate method does not force a synchronous paint.
Does "causes the control to be redrawn" mean next time an Update occurs?

Is Refresh simply:
Invalidate()
Update()
Thanks

Jun 22 '07 #1
2 7344
On Jun 22, 1:17 pm, " active" <activeNOS...@a-znet.comwrote:
Refresh says:
-Forces the control to invalidate its client area and immediately redraw
itself and any child controls.
Not the Menu for example?

While Invalidate() says:
-Invalidates the entire surface of the control and causes the control to be
redrawn.

Does "the entire surface" mean more then the client area?
Including the menu?
Not the child controls?

-Calling the Invalidate method does not force a synchronous paint.
Does "causes the control to be redrawn" mean next time an Update occurs?

Is Refresh simply:
Invalidate()
Update()

Thanks
Here's an interesting read on the subject:

http://groups.google.com/group/micro...a57f5e02acd649

Thanks,

Seth Rowe

Jun 22 '07 #2
thanks for the info

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11*********************@q75g2000hsh.googlegro ups.com...
On Jun 22, 1:17 pm, " active" <activeNOS...@a-znet.comwrote:
>Refresh says:
-Forces the control to invalidate its client area and immediately redraw
itself and any child controls.
Not the Menu for example?

While Invalidate() says:
-Invalidates the entire surface of the control and causes the control to
be
redrawn.

Does "the entire surface" mean more then the client area?
Including the menu?
Not the child controls?

-Calling the Invalidate method does not force a synchronous paint.
Does "causes the control to be redrawn" mean next time an Update occurs?

Is Refresh simply:
Invalidate()
Update()

Thanks

Here's an interesting read on the subject:

http://groups.google.com/group/micro...a57f5e02acd649

Thanks,

Seth Rowe

Jun 22 '07 #3

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

Similar topics

1
by: Claus Konrad | last post by:
What's the difference between calling the first and the second (see subject). Thanks! /Claus
1
by: SamIAm | last post by:
Hi There I need to create either a user control or custom control to replace my image controls. I need to be able to dynamically assign a id and file name to the control before rendering it. ...
1
by: wpy | last post by:
Hi, Does anybody know how to create multiple control with same ID or name in asp.net and request the controls's value in array form? For example the vb control can have same same but with...
0
by: Aaron Prohaska | last post by:
Can anyone tell me how I might solve the following problem. I have a composite control that I am placing at the top of the page which contains Label and DropDownList controls. I now need to place a...
12
by: Aaron Prohaska | last post by:
I have been trying to figure out how to make the property values of two instances of the same control synchronize during a postback and need some help. I have posted an example of what I'm trying...
3
by: MilanB | last post by:
Hello I'm asking is it possible that two or more Web User Control have same file (.ascx) name within same project? Namespace is different. I got error message: "CS1595: 'ASP.EditForm_ascx' is...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
17
by: SamSpade | last post by:
picDocument is a picturebox When I do picDocument.Invalidate() the box paints. But if instead I do picDocument.Refresh() the box does not paint. What does Refresh do. I guessed it did an...
2
by: John Dann | last post by:
This question has arisen from an earlier thread but is really a separate issue: I have a VB.Net listbox control on a form. I want to be able to do 2 things with items displayed within the one...
4
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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...

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.