Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
2.18/5 (3 votes)
See more:
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
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 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 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

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

VB
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.
 
Share this answer
 
VB
Shell "exe name with path"
 
Share this answer
 
Comments
CHill60 18-Jul-18 6:59am    
Not a particularly helpful solution to this 5 year old question

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900