Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OCX Files & swflash.ocx

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Could some one please explain what an ocx file is?

In addition how do I use swflash.ocx to show a flash movie in the vb code?

Any help would be great.

Thanks, John
 
An OCX file is the file extention of a compiled control. An example might be a FlexGrid control, ListBox, TextBox, etc. The first step is to locate the OCX from the "Project/Components" drop down menu and select it by placing a check by it. The control will then show up in your "Tools" menu. How you use it in your code is entirely up to you.

Hunter
 
Hunter thankyou for the help but if I want to play a flash movie using the ocx how do i do that .. do you know the required code?
 
Add the Shockwave Flash control from the project/components menu.

Add it to a form in your project and look at the properties of the component.
In "movie" enter the movie name, important "The Full path c:\etc..." or it won't work.
Thats it the movie is on the form and playing.

To control it programatically use object viewer to see the methods for the component. There are only a couple of relevant methods really such as "stop" and "play".

Hope this helps

Steve

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top