Prevents the control from drawing until the
EndUpdate method is called.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Sub BeginUpdate() |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As RasterPictureBox
instance.BeginUpdate()
|
C# | |
---|
public virtual void BeginUpdate() |
C++/CLI | |
---|
public:
virtual void BeginUpdate(); |
Example
This sample zooms out on the image, keeping it centered. The resulting transform is displayed in the console.
Visual Basic | Copy Code |
---|
Public Sub RasterPictureBox_BeginUpdate(ByVal viewer As RasterPictureBox)
viewer.BeginUpdate()
viewer.SizeMode = RasterPictureBoxSizeMode.CenterImage
viewer.UseDpi = False
viewer.EndUpdate()
End Sub |
C# | Copy Code |
---|
public void RasterPictureBox_BeginUpdate(RasterPictureBox viewer) { viewer.BeginUpdate(); // suspend painting of the image viewer.SizeMode = RasterPictureBoxSizeMode.CenterImage; viewer.UseDpi = false; viewer.EndUpdate(); // start painting of the image } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also