Private Sub Command15_Click ()
Dim ph $
Value
ph=photo.Picture1. Picture=LoadPicture (App) Path & amp; "\ User " & amp; Ph & amp; ". JPG ")
End Sub
I'd like to know the Picture1. Picture is stem what of, then this one like the Picture1 and Picture are null values
This is borrowed from baidu, there are still problems,
CodePudding user response:
Picture attributeReturn or set to display images in the controls, the OLE container controls, when the design is not available at runtime as read-only,
Syntax
Object. Picture [=Picture]
Picture attribute any of the following components:
Part of the description
Object expression, and its value is "applied" in the list of an object,
Picture string expression, specify a contains the image file, detailed instructions are included in the "Settings",
Set the value
Picture of the setting values are as follows:
Set the value description
(None) (the default) without pictures,
(a Bitmap, icon, metafile, GIF, JPEG) to specify a picture, design time can be loaded in the properties window images, at run time, also can the Bitmap, icon, or use LoadPicture function to set the properties file,
Description
When the design, use the "edit" menu of "copy", "shear" and "paste" command to pass through the clipboard images, run time, you can use the clipboard method, such as with the text to the clipboard constant vbCFBitmap, vbCFMetafile and vbCFDIB GetData and SetData GetFormat, they are listed in the object browser Visual Basic (VB) object library,
Set Picture properties when the design, the Picture is saved and the form is loaded at the same time, if you are creating an executable file, the file is contained in the image, if loaded at run time the Picture, the Picture not save, with applications in SavePicture statement can from a form or a Picture box photo storage to a file,
Note that the runtime, Picture properties can be set to any other object DragIcon, Icon, Image or Picture attributes, or can be LoadPicture () function returns the Image assigned to it,
Note Unisys Corporation has a patent, the patent claim involves certain aspects of GIF - LZW compression technology, using the PictureBox in the technology and Image control, the Microsoft Corporation in September 1996 won to Unisys LZW patent licensing, however, Microsoft license does not extend to the software developers or a third party, they use any Microsoft toolkit, language or operating system product development in their own products to provide a GIF read/write and/or any other LZW ability (for example, through the DLL and API),
If your business application USES one of these controls (and therefore USES the technology of LZW), you may wish to obtain independent legal advice about the patent, detailed information please contact the http://www.unisys.com/USA Unisys,
CodePudding user response:
Picture1. Picture=LoadPicture (App) Path & amp; "\ User " & amp; Ph & amp; ". JPG ")This sentence is executed, hint what mistake?