Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browser Control History
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00589774
Message ID:
00589863
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
>>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    && Back is a button class
>>    Case CSC_NAVIGATEFORWARD
>>      Forward.Enabled = Enable   && Forward is a button class
>>  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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform