DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Internet restriction

  1. #1
    Join Date
    Nov 2006
    Posts
    4

    Internet restriction

    Dim objShellWins As SHDocVw.ShellWindows


    Dim objIE As SHDocVw.InternetExplorer
    Dim buf As String * 1024
    Dim title As String
    Dim length As Long
    Dim txt As String

    Dim objDoc As Object
    Dim i As Integer
    Dim strOut As String
    Dim intFree As Integer
    Set objShellWins = New SHDocVw.ShellWindows

    ' If objIE.LocationURL <> "http://www.physician-to-go.net/" Then
    ' objIE.Navigate2 ("http://www.physician-to-go.net/")
    '
    'End If



    For Each objIE In objShellWins
    length = GetWindowText(objIE.hWnd, buf, Len(buf))
    title = Left$(buf, length)
    If InStr(title, " - Microsoft Internet Explorer") > 0 Or InStr(title, " - Windows Internet Explorer") > 0 Then

    objIE.AddressBar() = False
    a = InStr(1, objIE.LocationURL, "www.yahoo.com")
    If a = 0 Then

    objIE.Navigate2 ("www.yahoo.com")

    Else
    '
    End If
    End If
    Next objIE


    so that is my code.It works fine with IE but how about other browsers like netscape,mozilla.I want to handle browsers I dont want to make user web browser.Please any help?

  2. #2
    Join Date
    Jan 2007
    Posts
    22
    internet restriction is performed using regidtry values it's usually called policies

    u can use a program that make this restriction and monitor what it is doing by a registry monitor program

    then if u know the values , u can set it using the registry access functions ( RegSetValue ) etc..

Similar Threads

  1. Using Microsoft Internet Controls
    By HusamMc in forum .NET
    Replies: 1
    Last Post: 01-05-2006, 02:22 PM
  2. Replies: 0
    Last Post: 10-22-2002, 02:54 PM
  3. Detecting an internet connection
    By Hanna in forum Enterprise
    Replies: 3
    Last Post: 05-03-2001, 03:00 AM
  4. Re: COM Internet services
    By Tom Shreve in forum Enterprise
    Replies: 0
    Last Post: 04-07-2000, 08:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center