I know pictures can be added to picture boxes and backgrounds by using the "Properties" and adding something to "Picture". But I want to know how I can actually get the program to display an animation or picture say, after inputting something into an inputbox, or say after a particular msgbox has been clicked "ok" and then for the picture or animation to show up...Something within the code itself I'm figuring, something that will be triggered after the user has begun the program and started doing stuff, not by clicking a button specifically. Can anyone understand me and better yet help me out?
Lunaticrr
0
Light Poster
Recommended Answers
Jump to PostHi again..
Sounds like you want to play a video or animation - such as an mpeg or avi or so on.. the trigger event isn't the difficult bit, it's how to play it that might be...
There's several ways to do what you want. The easy way …
Jump to Postfor just pictures, you can add textbox or variable values to the picture object to load a new picture if you use the correct format.
image1.picture =loadpicture("c:\vbrox.bmp") image1.picture =loadpicture(text1.text) image1.picture =loadpicture(strImage)
Jump to PostOK so if I'd read your original post properly... for loading a still image into an image control jwshepherds code will work fine. But back to the movies!
Now if you had to change the object name, you might have used the new mediaplayer. No problem if it works …
All 10 Replies
AlanC
jwshepherd
0
Junior Poster
Lunaticrr
0
Light Poster
Lunaticrr
0
Light Poster
AlanC
AlanC
Lunaticrr
0
Light Poster
AlanC
Lunaticrr
0
Light Poster
jwshepherd
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.