Click here to Skip to main content
12,396,961 members (39,904 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB6
Dear Sir




I have an video as exe file . and i want to run through vb6 code inside the vb frame . i mean i will show that exe file through a foder in vb 6 and when i click on it the file run iside the frame im using in vb6.





thanks
Posted 6-Apr-13 20:39pm
Comments
MohamedHassanAli 7-Apr-13 4:27am
   
Hi Rajbir,
Correct me if i am not understanding your situtation. You are building a VB application using which users can navigate to a Video file through File Dialog control and select a file and that video should be played in a frame?

If this is what you want maybe using a Media Player Control in you project may do the trick.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd564586(v=vs.85).aspx
AYDIN EBRAHIMI HOMAY 7-Apr-13 5:36am
   
You can use shell command, please review follow of link for more information about it and take a look:

Dim bolShell As Boolean
bolShell = SuperShell(App.Path & "\ftp.bat", App.Path, INFINITE, SW_NORMAL, HIGH_PRIORITY_CLASS)
txtStatus.Text = bolShell

http://www.vb6.us/tutorials/advanced-shell
Christianirwan 26-Jun-13 5:50am
   
It looks like answer. Why you don't fill them as answer?
AYDIN EBRAHIMI HOMAY 26-Jun-13 10:28am
   
Ok I will do it
rajbir singh thind 9-Jul-13 2:09am
   
no sir it was the exe file which it self embedded in player and player must fit in vb frame
AYDIN EBRAHIMI HOMAY 9-Jul-13 6:52am
   
Ok you can use window handles for do that
rajbir singh thind 7-Apr-13 5:54am
   
Sir that video is an exe file by a client and they encrpted so that no one cn copy that they want only to oprate that exe file through vb programme in vb
MohamedHassanAli 7-Apr-13 7:23am
   
in real time how do you run this video file ?
rajbir singh thind 7-Apr-13 10:43am
   
that client run it directly they have to make a exe of full chapter and he want to make different exe o each chapter and show in tree vie and when the user click on exe it run in our programes's frame
AYDIN EBRAHIMI HOMAY 8-Apr-13 1:23am
   
Did you want show your video file from vb6 program ? if yes so why you don`t use Media Player component from vb6 ?

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi

You can use shell command, please review follow of link for more information about it and take a look:

Dim bolShell As Boolean
bolShell = SuperShell(App.Path & "\ftp.bat", App.Path, INFINITE, SW_NORMAL, HIGH_PRIORITY_CLASS)
txtStatus.Text = bolShell

http://www.vb6.us/tutorials/advanced-shell[^]

Best Regards.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 29 Jun 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100