This documentation is archived and is not being maintained.

Animate Method

Visual Studio .NET 2003

Displays an animated picture in the Status Bar.

[Visual Basic .NET]
Public Sub Animate( _
   ByVal On As Boolean, _
   ByVal AnimationType As Object _
) 
[Visual Basic 6]
Sub Animate( _
   ByVal On As Boolean, _
   ByVal AnimationType As Variant _
) 
[C++]
HRESULT __stdcall Animate(
   VARIANT_BOOL On,
   VARIANT AnimationType
);
[C#]
public void Animate(
   bool On,
   object AnimationType
);
[JScript .NET]
public function Animate(
   On : Boolean,
   AnimationType : Object
)

Parameters

On
Required. Indicates whether to turn the animation on (True) or off (False).
AnimationType
Required. A vsStatusAnimation constant indicating an animated icon to display.

Alternatively, AnimationType can also take an IPicture or IPictureDisp which is a bitmap 16 pixels high and a multiple of 16 pixels wide. To turn off the custom animation, you must pass the same exact IPicture or IPictureDisp.

Example

Sub AnimateExample()
   Dim SBar As StatusBar
   SBar = DTE.StatusBar
   ' Turn on the "save" Status Bar animation.
   SBar.Animate(True, vsstatusanimation.vsStatusAnimationSave)
   MsgBox("Notice the Status Bar animation.")
   ' Turn off the animation.
   SBar.Animate(False, vsstatusanimation.vsStatusAnimationSave)
End Sub

See Also

Progress Method | Highlight Method

Applies To: StatusBar Object

Show: