Spread Windows Forms 6.0 Product Documentation
Update Method
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ElementControl Class : Update Method


Glossary Item Box

Forces the control to repaint immediately any region that has become invalid.

Syntax

Visual Basic (Declaration) 
Public Overridable Shadows Sub Update() 
Visual Basic (Usage)Copy Code
Dim instance As ElementControl
 
instance.Update()
C# 
public virtual new void Update()

Remarks

Contrast the Update method with the Refresh method. The Update method forces the control to repaint invalid areas immediately. The Refresh method has the control check for invalid areas and then immediately repaint invalid areas.

For more information, see the Refresh method in the Microsoft .NET Framework Reference.

Example

C#Copy Code
// Change the parent of the controls
private void button1_Click(object sender, System.EventArgs e)
{
    control.Parent = groupBox1;
    control2.Parent = this;
    control.Update();  
}
Visual BasicCopy Code
'Change the parent of the controls
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    control.Parent = Me
    control2.Parent = GroupBox1
    control.Update() 
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.