Article ID: 163282 - Last Review: July 13, 2004 - Revision: 3.2 How To Use Forward and Back Buttons for WebBrowser ControlThis article was previously published under Q163282 SUMMARY
When hosting the WebBrowser control, it may be desirable to implement
Forward and Back buttons similar to those that Internet Explorer
implements. One common problem that programmers face when doing this is how
to know when to enable and disable the buttons.
MORE INFORMATION
The WebBrowser control supports a CommandStateChange event, which is fired
whenever the Forward or Back buttons need to be enabled or disabled. The
CommandStateChange event is sent with two parameters: a constant indicating
the type of button (CSC_NAVIGATEFORWARD or CSC_NAVIGATEBACK), and a Boolean
flag indicating whether to enable or disable the button.
CSC_NAVIGATEFORWARD and CSC_NAVIGATEBACK are defined in Exdisp.h, which
comes with the Internet Client SDK.
APPLIES TO
| Article Translations
|

Back to the top
