AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Msdn ipicture picturechanged1/25/2024 ![]() Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. Actually, just on a hunch I searched for IPicture in the VS.NET 2005 object browser and I discovered the following method: .GetIPictureFromPicture () Take a look at some of the other AxHost methods that deal with IPicture as well. Me!Visible1.Left = Me!Visible1.Left + 200 If (Me!Visible1.Left > gfrmWidth) Then Me!Visible1.Left = 0 Me!Visible1.PictureData = Me!Hidden2.PictureData Me!Visible1.PictureData = Me!Hidden1.PictureData The value of gfrmWidth is set to Me.Width in the form's open event. The visible image control is moved back to the left side of the form when its Left property value is greater than the width of the form stored in the public variable gfrmWidth. Each time the Timer event occurs, the picture in the image control Visible1 is changed by using the PictureData property of the hidden image controls, and the visible image control is moved 200 twips to the right. The TimerInterval property is set to 200. Both image controls have their Visible property set to False. The Hidden1 image control contains a picture of a butterfly with its wings up, and the Hidden2 image control contains a picture of the same butterfly with its wings down. The following example uses three image controls to animate a butterfly image across a form. You can also use the PictureData property together with the Timer event and the TimerInterval property to perform simple animation on a form. For example, you might open a Customers form by using a different background picture, depending on whether the form is opened for data entry or for browsing. Use this property to display different background pictures in a form, depending on actions taken by the user. The PictureData property setting is the PictureData property of another control, form, or report. SyntaxĮxpression A variable that represents an Image object. Use the PictureData property to copy the picture to another object that supports the Picture property.
0 Comments
Read More
Leave a Reply. |