473,789 Members | 2,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is Control.Invalid ate() 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 7367
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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** *************@q 75g2000hsh.goog legroups.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
29240
by: Claus Konrad | last post by:
What's the difference between calling the first and the second (see subject). Thanks! /Claus
1
1539
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. Any help appreciated, S
1
1408
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 different index. Thanks.
0
931
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 second instance of this control at the bottom of a page and make the two instances of the same control keep the same state. So if a DropDownList in the first instance is changed which might also change the text of a Label then the second...
12
1370
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 to do at this address http://64.84.11.209/. I would really appreciate any help with this. I'm actually surprised that no one else seems to be doing this or having the same problem. The functionality I'm trying to make work I think would be very...
3
1679
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 defined in multiple places;" I know that I have two controls EditForm, in different namespaces, but with same file name: "EditForm_ascx" If it is of any importance, I use both user controls on same page.
5
3597
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 that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label control and a WebForm label control, I could see that properties are different for
17
8544
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 Invalidate and an Update. Can someone shed some light?
2
2671
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 listbox. 1. Reorder items using drag and drop with the mouse. 2. Delete items eg by double-clicking or some other mouse-related action.
4
2493
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 unsuccessfully in creating the whole pane as a user control and have succeeded in adding the pane and then dynamically adding the content which is a user control to the pane, dynamically within the page. However I would like to have a single pane...
0
9666
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
9511
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,...
0
10410
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
9984
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
9020
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
7529
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
6769
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
5418
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...
2
3701
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.