ImageMan ActiveX Control Version 8
LoadStatus Property
See Also  Example  Send comments on this topic.

Glossary Item Box

Description

Returns the status of images loaded from the Internet.

Property type

Read-only property

Syntax

Visual Basic
Public Property LoadStatus As Long

Remarks

This property should be read in the ReadyStateChange event and indicates if an error occurred when loading image data over the Internet.

Example

(Visual Basic)Copy Code
Private Sub ImageMan1_ReadyStateChange()
    
    If ImageControl1.ReadyState = 4 Then
        If ImageControl1.LoadStatus = 0 Then

              ' Refresh the Image Control to display the image
            MsgBox "Finished Loading Image."
            
            ImageControl1.Refresh

          Else
            MsgBox "Error " & ImageControl1.LoadStatus & " occurred loading Image from Internet"
        End If

      End If
End Sub

See Also

© 2014 Data Techniques Inc. All Rights Reserved.