Spread Windows Forms 8.0 Product Documentation
Update Method (ElementControl)
Example 


Forces the control to repaint immediately any region that has become invalid.
Syntax
'Declaration
 
Public Overridable Shadows Sub Update() 
'Usage
 
Dim instance As ElementControl
 
instance.Update()
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
// Change the parent of the controls
private void button1_Click(object sender, System.EventArgs e)
{
    control.Parent = groupBox1;
    control2.Parent = this;
    control.Update();  
}
'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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

ElementControl Class
ElementControl Members

 

 


Copyright © GrapeCity, inc. All rights reserved.