In order to display images, developers must first load the image into a DIB. See the Load an image into a DIB section for additional details. After loading the image, developers can display the DIB by setting the hDib property of the BIDisp.OCX to the handle of the DIB you want to display and then using the Refresh method to refresh the display. For example:
thisform.oBIDisp.hDib = hDib
thisform.oBIDisp.Refresh()
Don’t forget to use the DropDIB method to free up the memory when you have finished with the DIB.