I searched for tuts/guides everywhere but coudnt find anything...
How to create a *.exe file that loads a webpage in it. (Online Webpage like:
http://www.endlessparadigm.com)
So just the webpage: NO Toolbars, NO Statusbar, NO Buttons, just the webpage.
Can anyone give me a short tutorial?
Oh, mention the program you use too, because I don't know which one to use.
So you need to make a small and basic type of web browser/viewer,
VB6 using Microsoft Internet Controls -»
http://www.trap17.com/index.php/how-make...31604.html
VB.Net and other commonly used languages have ready made controls that you can use,
It's just depends on what you have experience using really,
For Windows applications, to load the webpage in the user's default browser, make use of the ShellExecute() API function (Google for more info).
If you want to "embed" a browser in your application, use hibbyware's suggestion of Microsoft's IE ActiveX control.
Thanks for all those replies!
I finally finished the app! :yipi:
Thanks again,
SXForce
Hmm, not everything is working right.
When I press the maximize button, the webbrowser screen stays small, so now i got a white space at the bottom and the right.
So...
How to create a browser window that is resizing itself when the user press the MAXIMIZE button?
SXForce Wrote:Hmm, not everything is working right.
When I press the maximize button, the webbrowser screen stays small, so now i got a white space at the bottom and the right.
So...
How to create a browser window that is resizing itself when the user press the MAXIMIZE button?
Nothing resizes by itself.
You have to write code which handles your window's resize event, then, whenever the event is fired, resize your browser.
Hmm, I thought there maybe was easier way in VB6, guess not...
Well, i figured it out and use this code:
Code:
Private Sub Form_Resize()
WebBrowser1.Height = Me.ScaleHeight - (2 * WebBrowser1.Top)
WebBrowser1.Width = Me.ScaleWidth - (2 * WebBrowser1.Left)
End Sub
|
It's working OK now, but now there is yet another problem...
The normal browser (IE and Firefox) doesn't give me errors, but when I try it with my ActiveX browser (IE), it gives a "syntax error"!
Is there a way to fix this?
Because when I press "yes" on "continue running this scripts?", it will just load like there is NO error...?!
SXForce Wrote:It's working OK now, but now there is yet another problem...
The normal browser (IE and Firefox) doesn't give me errors, but when I try it with my ActiveX browser (IE), it gives a "syntax error"!
Is there a way to fix this?
Because when I press "yes" on "continue running this scripts?", it will just load like there is NO error...?!
This is most likely a webpage specific error.
Most likely, you're browsing a copy of the page. For example, if you saved some page off the internet onto your computer, looking at the page may cause such an error.
Firefox will almost never give errors :P