| **Navigation:**  [[introduction.htm|Language Reference]] > App A - DDE, OLE, and OCX > OCX Library Procedures >====== OCXLOADIMAGE (return an image object) ====== | [[ocxsetparam set current event parameter string .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[filesearch.htm#events|{{btn_next_n.gif|Next page}}]] | | || **OCXLOADIMAGE(** //name// **)** {{blk2blue.jpg|blk2blue.jpg}} | **OCXLOADIMAGE** | Returns an image object. | | //name// | A string expression containing the name of the file or resource to load. | **OCXLOADIMAGE **returns an image object. This image object can be assigned to any control that uses an image object (such as a VB imagelist control). **Return Data Type:     **STRING **Example:** **!Add an image to an ImageList control:** **?imagelist{'ListImages.Add(,,' & ****OCXLOADIMAGE****('CLOCK.BMP') & ')'}**