-
Custom Browser
Hi, i'm after a lil help..., i'm trying to make a browser that can only got to a site specified as the startup page for the browser so as i can use it on my PC @ home to prevent the kids from going anywhere...., i have made a website on my server that contains a list of sites they go to..., so i would like to be able to use this browser to point to my server.
now i've tried using frmBrowser in VB6, however i dont know how to make www.microsoft.com the startup page, so i downloaded some code off the internet .
now i am able to specify the startup page..., however i also want to be able to have an admin section which is password protected so as the startup page can be modified without me having to change the frm and re compile the program..., now what makes it harder is that i am also a newbie to VB6, well & developing also.
so if anybody has any ideas, please let me know
or if anyone is able to code me a browser with no address bar, no search button, just a refresh button, back & foward button, & a home button that goes back to the specified startup page, be able to maximize & minimize the app, have to menu's except the admin menu to be able to change the startup page, & have the admin menu password protected with a password and send me the code so as i can see what the code looks like, just to get a better understanding.
Thanks
Tim
e - [email protected]
-
they can only view one page and not use any of the links on the page?
Or do u want to have a list of approved websites that they can visit and if they type in a address that is not on the list then the browser won't naviagate there?
-
well i just want the broswer to go to one page (that can be modified via a password protected admin section) and then once the application is launched, the specified URL is where the browser goes to. I dont want the browser to have an address bar, or a favourites. the only thing i want the browser to have is:
Stop button
back button
foward button
refresh button
home button (and then this button instead of being taken to IE's home page, take it to the specified startup page for THIS browser)
and then as for any links.., yes they can follow the links of the pages
i've got a browser that does this, however i am just unable to make the application maximise & also maximise the browser section of the application, and also it doesnt have the admin section, if you want to, i can upload the frm i have so far
-
sure that would be good:)
-
1 Attachment(s)
ok, here is the form that i'm using..., this one is different to my original program, but i like this browser better than my old one.., anyway i've uploaded the .frm & the compiled .exe with this post
also i'm having :confused:trouble:confused: with the foward button on this when its first opened & there's no page to go foward to
Thanx :)
-
i need the .vbp file as well as the .vbw file and the .frx file for the form. Then i can look at it ;)
-
1 Attachment(s)
aahh sorry..., ya can tell i'm a novice of a novice, lol
:) :D ;)
-
do u want to be able to change the password or can i just code it into the program?
-
just code it into the program, as if i want it to be changable, then the password's stored external to the app isnt it ?
-
also, this section in the code
Private Sub cmdHome_Click()
URL$ = "http://www.microsoft.com"
WebBrowser1.Navigate URL$
End Sub
Private Sub Form_Load()
URL$ = "http://www.microsoft.com"
WebBrowser1.Navigate URL$
End Sub
is it possible to change both of those URL's when its changed in the admin section ?
and did you see what i meant about the problem with the foward button when there is no page to go foward to ?
& is it very hard to add a status bar ? i tried..., however was unsucsesful:mad:
-
As for your first post yes it would have to be stored external some place. If you want it coded into the prog what password do u want?
for your second post, i have already done a lot of it. I will add the status bar too.
:)
-
yeah, well i think it would be better stored in the app itself..
as for the password, how about
2bmw2g0 the 0 is zero
-
1 Attachment(s)
Here... I fixed your code a little. In the WebBrowser1_commandStateChange, I added a snippet of code I had that disables and enables the back and forward buttons when you can't go either way. I also changed the resize code in your form, so that the browser fits. You should always use ScaleWidth and ScaleHeight when you are resizing a control, because that takes into account the borders on the form, and give you the correct internal form size. I will post the source to my MultiBrowse program in my next reply, and you are free to look at it and learn what you can from it. It's not EXPERT work, but it works good for me. :)
-
1 Attachment(s)
Here is my MultiBrowse source:
PS... It's not commented, so if you can't make anything out of it, just ask, and I can try my best to help. It's been about 4 months since I last worked on this, so even I don't know what some stuff does :D :p
-
Here jx3 see how this works out. Tell me if it works ok or needs something done.
Browser
-
stickman, that is blardee excellent, i coulndt have done better myself, actually thats why i asked for help..., lmao
Cheers Bud :)