Results 1 to 2 of 2

Thread: Webbrowser.GoForward

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    does anyone know how to disable this if there is no where to 'goforward' to? If you click it and there is no page...then it blows up


    Thanks
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  2. #2

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Never mind

    I found it after digging and digging...
    OneSource had posted this...
    Code:
    Private Sub WebBrowser1_CommandStateChange(ByVal Command As Long, ByVal Enable As Boolean)
        'Enable and Disable "Back" and Forward Buttons
        If Enable = True And Command = CSC_NAVIGATEBACK Then
            cmdBack.Enabled = True
        ElseIf Enable = False And Command = CSC_NAVIGATEBACK Then
            cmdBack.Enabled = False
        End If
    
        If Enable = True And Command = CSC_NAVIGATEFORWARD Then
            cmdForward.Enabled = True
        ElseIf Enable = False And Command = CSC_NAVIGATEFORWARD Then
            cmdForward.Enabled = False
        End If
    End Sub
    Thanks OneSource! this is PERFECT!
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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