Click to See Complete Forum and Search --> : have html attached to exe programme??
mish78
05-26-2006, 07:01 AM
Hi,
I have a visual basic exe programme and a html file on my computer. Does anyone know how to join the two.
I want to attach the exe file to the web page so when i click the webpage the .exe programme comes up as well. at the moment they both just sit on the taskbar loaded and ready to be used. Ideally i want to have the .exe file in or around the webpage. I can alter the webpage but not the exe file.
any suggestions or ideas really appreciated as i cant find any info on this at all. cheers :confused: :confused: :confused:
Are you wanting the *.exe program to open the webpage?
mish78
05-26-2006, 10:19 AM
no the web page and application are already running. i want to connect the application window to the html window or have the application window inside the html window. I cant find any way to do it at all
Mausau2000
05-27-2006, 06:03 PM
Sorry but what you are asking to do is inpossable... U cant add the exe as content on your page though you can link to it...
Is that what u want?
shanusav
05-29-2006, 02:32 AM
I agree. An exe can not display within a web browser. However, a Visual Basic App can have a web browser window added and that then can be loaded with your webpage.
mish78
05-29-2006, 07:50 AM
thanks for the replys folks. What about having the html page look for the exe window and attaching itself to the side of the exe window??
shanusav
05-29-2006, 08:21 AM
Programs cannot be placed within Windows. Neither can they be attached. Only the user can drag them and place them. Im afraid what you want to do is impossible.
<Eddie>
05-29-2006, 02:46 PM
Hi,
I have a visual basic exe programme and a html file on my computer. Does anyone know how to join the two.
I want to attach the exe file to the web page so when i click the webpage the .exe programme comes up as well. at the moment they both just sit on the taskbar loaded and ready to be used. Ideally i want to have the .exe file in or around the webpage. I can alter the webpage but not the exe file.
any suggestions or ideas really appreciated as i cant find any info on this at all. cheers :confused: :confused: :confused:
From my understanding of what you're after, sorry guys but it can be done. What this does though is open all sorts of security issues so is useless on the public World Wide Web but if the environment is controlled, i.e. intranet, stand-alone pc etc then here goes.
Opening the EXE upon loading the web document [IE only]
This can be achieved with VBScript and SHELLEXECUTE within the HTML file. Google for both as there are plenty of examples kicking around. You WILL face security issues but you can adjust settings to get the desired effect. IE will parse the script and run the application using the SHELL command.
As for docking, this is something that is best done within the VB application as it's easier to control the app at the source than to try and manipulate IE. Use JavaScript to set the browser width then let the app's form left property start at the browsers width. You'll need to fiddle with this. It's fairly simple but a more robust method would be to subclass the browser and hook it. This way you can bend IE into any shape you want and make it look seamless but this is fairly advanced VB.
Rendering within IE
If you wish the application to render in the browser then you need to port the application to an ActiveX control within VB.
A better solution
Use the Internet Control [shlldocvw.dll] within VB and load the HTML file as mentioned earlier but this only works if you don't need a defined index.html file within the project specifications.
mish78
05-31-2006, 07:33 PM
thanks again, unfortunatly I cannot alter the exe file in any way as its already written and compiled by someone else, all i can do is change the html and javascript. I can launch the exe from IE by linking to the file but i need the exe and the html to be fixed together. from what i gather this cant be done by manipulating the html alone?