Results 1 to 16 of 16

Thread: Custom Browser

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    QLD, Australia
    Posts
    18

    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]

  2. #2
    Fanatic Member stickman373's Avatar
    Join Date
    Mar 2001
    Location
    MA
    Posts
    909
    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?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    QLD, Australia
    Posts
    18
    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
    Last edited by Jx3; Feb 18th, 2002 at 08:17 PM.
    What? Who? Where? How?

  4. #4
    Fanatic Member stickman373's Avatar
    Join Date
    Mar 2001
    Location
    MA
    Posts
    909
    sure that would be good

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    QLD, Australia
    Posts
    18
    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 trouble with the foward button on this when its first opened & there's no page to go foward to


    Thanx
    Attached Files Attached Files
    What? Who? Where? How?

  6. #6
    Fanatic Member stickman373's Avatar
    Join Date
    Mar 2001
    Location
    MA
    Posts
    909
    i need the .vbp file as well as the .vbw file and the .frx file for the form. Then i can look at it

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    QLD, Australia
    Posts
    18

    Smile

    aahh sorry..., ya can tell i'm a novice of a novice, lol

    Attached Files Attached Files
    What? Who? Where? How?

  8. #8
    Fanatic Member stickman373's Avatar
    Join Date
    Mar 2001
    Location
    MA
    Posts
    909
    do u want to be able to change the password or can i just code it into the program?

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    QLD, Australia
    Posts
    18
    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 ?
    What? Who? Where? How?

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    QLD, Australia
    Posts
    18
    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
    What? Who? Where? How?

  11. #11
    Fanatic Member stickman373's Avatar
    Join Date
    Mar 2001
    Location
    MA
    Posts
    909
    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.


  12. #12

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    QLD, Australia
    Posts
    18
    yeah, well i think it would be better stored in the app itself..

    as for the password, how about

    2bmw2g0 the 0 is zero
    What? Who? Where? How?

  13. #13
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    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.
    Attached Files Attached Files
    <removed by admin>

  14. #14
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    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
    <removed by admin>

  15. #15
    Fanatic Member stickman373's Avatar
    Join Date
    Mar 2001
    Location
    MA
    Posts
    909
    Here jx3 see how this works out. Tell me if it works ok or needs something done.

    Browser

  16. #16

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    QLD, Australia
    Posts
    18
    stickman, that is blardee excellent, i coulndt have done better myself, actually thats why i asked for help..., lmao


    Cheers Bud
    What? Who? Where? How?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width