ReadyState Property

ReadyState Property

See Also         Example         Applies To

You can use the ReadyState property to determine the status of the file being loaded into a snapshot control.

Setting

The ReadyState property is an Integer value representing the loading status of a snapshot file.

Setting Description
0 The snapshot control has not been initialized.
1 The snapshot control is loading.
2 The snapshot control is loaded, but the snapshot file is being downloaded.
4 The snapshot control has finished downloading the snapshot file.

The ReadyState property is available only by using Visual Basic.

Remarks

If the SnapshotPath property has been set using the control's property sheet, then the ReadyState property will always be at least 2 even if the SnapshotPath property is later set to a zero-length string programmatically.

This property is useful when the SnapshotPath property contains an HTTP or FTP address to a snapshot file. In this case, the file is downloaded asynchronously and you can use the ReadyState property to determine when the download is complete and the snapshot is displayed.