Specifies the name of the image file to be loaded in the control.
Public Property Picture As String
This property specifies the filename of the image to be displayed. If this property is set to a new value, which is not an existing file, an error will occur.
Images can also be loaded over the Internet using FTP, HTTP, and HTTPS protocols. Set the picture property to a complete URL including the FTP://, HTTP://, or HTTPS:// prefixes. Since loading images over the Internet is Asynchronous, program control will return to your code while the image data is being loaded. When the image has completed loading or if an error occurs the ReadyStateChange event will fire. At that time the LoadStatus property will be set to zero if the image successfully loaded otherwise it will contain an error code.
To clear the current image from the control set this property to an empty string.
' Load an image from an FTP site ImageControl1.Picture = "ftp://ftp.data-tech.com/images/cool.gif" ' Load an image from disk ImageControl1.Picture = "c:\test.pcx" ' Clear the current image from the control ImageControl1.Picture = ""