473,779 Members | 1,912 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 7366
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
29236
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
3596
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
8541
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
2492
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
9632
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
10136
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10071
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
8958
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
7478
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
5372
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...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2867
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.