>>Hmmm...I think it would be like this:
>>
>>
Private Sub WebBrowser_CommandStateChange(ByVal Command As Long, ByVal Enable As Boolean)
>> Select Case Command
>> Case CSC_NAVIGATEBACK
>> Back.Enabled = Enable
>> Case CSC_NAVIGATEFORWARD
>> Forward.Enabled = Enable
>> End Select
>>End Sub
No line continuations in VB.
>
>Yeah, but what would it be in VFP code? The browser control does have a CommandStateChange method that you can call, but there are no parameters for it. So once you navigate somewhere, it always returns true.
Mine has parameters (command and enable). What it doesn't have is either Back or Forward properties. According to the documentation, however, it appears that these are user define.
What version of the WebBrowser control are you using? The ProgID of mine is Shell.Explorer.2
George
Ubi caritas et amor, deus ibi est