ReadyState Example for Visual Basic

This example shows how to use the ReadyState property to test whether an asynchronous load is in progress.

Public WithEvents RasterIO As LEADRasterIO

'...... start a download
    RasterIO.BitmapDataPath LEADRasterView1.Raster, "http://www.someserver.com/images/someimage.cmp"

'......
If RasterIO.ReadyState = RASTER_READYSTATE_LOADING Then
    MsgBox "Still loading the image"
End If