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
Printable View
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
I found it after digging and digging...
OneSource had posted this...
Thanks OneSource! this is PERFECT!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