Click here to Skip to main content
11,641,064 members (71,083 online)
Rate this: bad
good
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 at 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 at 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 at 26-Jun-13 5:50am
   
It looks like answer. Why you don't fill them as answer?
AYDIN EBRAHIMI HOMAY at 26-Jun-13 10:28am
   
Ok I will do it
rajbir singh thind at 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 at 9-Jul-13 6:52am
   
Ok you can use window handles for do that
rajbir singh thind at 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 at 7-Apr-13 7:23am
   
in real time how do you run this video file ?
rajbir singh thind at 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 at 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
0 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 185
4 Afzaal Ahmad Zeeshan 129
0 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 185
4 Afzaal Ahmad Zeeshan 129


Advertise | Privacy | Mobile
Web04 | 2.8.150731.1 | Last Updated 29 Jun 2013
Copyright © CodeProject, 1999-2015
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