Gets or sets a value indicating whether an image is loaded synchronously.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Setting the property to true means the image is loaded synchronously. This causes the user interface to be blocked from other input until the image is loaded. When is false (the default) and the LoadAsync method is used to load the image, the InitialImage image is displayed when the specified image is loaded, and the user can interact with the interface during the load process.
The following code example demonstrates how to use the property. To run this example, paste the following code into a Windows Form that contains a PictureBox named pictureBox1 and a Button named startLoadButton. Make sure that the Click event for the button is associated with the startLoadButton_Click method in this example. You must change the image file path to one that is valid on your system.