Results 1 to 6 of 6

Thread: How to set the homepage?

  1. #1

    Thread Starter
    Hyperactive Member jeba's Avatar
    Join Date
    Feb 2000
    Posts
    265

    Cool

    Hi there!
    How can I set the default home page of the browser(Both Netscape and IE)? Even if the user set it to their own home page, that should be overriden by mine in the next instance of the browser. I know this is something to do with the registry, but I dont know where in registry.
    One more related question-> How to start one more instance of the browser automatically, when the browser is started?

    Please help me.
    Jeba.
    J£ßä

  2. #2
    Junior Member
    Join Date
    May 2000
    Posts
    27

    Talking reg info

    HKEY_CUURENT_USER\Software\microsoft\internet explorer\Main\Start Page

    thats the registry entry but i'm sure theres an easier way to do it...probably some api call...
    and to open another instance u should just pop up a new window with some asp code....

    i'm guessing its asp


  3. #3

    Thread Starter
    Hyperactive Member jeba's Avatar
    Join Date
    Feb 2000
    Posts
    265

    Arrow well, can I when an app starts?

    Hi there!
    Thanx for the info okiedokie!
    Well, Cant I know when an app is launched, so that I can use my program to start another instance of that app?
    Please help.
    Jeba.


    [Edited by jeba on 06-20-2000 at 06:08 AM]
    J£ßä

  4. #4
    Guest
    Can you reword that, I don't quite understand what you are trying to do.

    Code:
    'Only allow one instance of your project
    If App.PrevInstance Then End

  5. #5
    Guest

    Sorry...

    Oh, I think I know what you are trying to do. See if a window is loaded and if it is, than you want to start another one.

    Code:
    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long 
    
    Dim winHwnd As Long 
    winHwnd = FindWindow(vbNullString, "Title of Program") 
    If winHwnd <> 1 Then 
    Shell "c:\browser.exe", vbnormalfocus
    End If



  6. #6

    Thread Starter
    Hyperactive Member jeba's Avatar
    Join Date
    Feb 2000
    Posts
    265

    Smile Thanx..

    Thanx Man!
    Jeba.
    J£ßä

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