Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old August 4th, 2004, 10:56 AM
benoyraj benoyraj is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: US
Posts: 15 benoyraj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Forward/Backward button problem while using Internet Control in VB 6.0

The solution for this is described the following lines of code:

~~~~~~~~~~~~~

1. Declare const variables

Private Const CSC_NAVIGATEFORWARD As Integer = 1
Private Const CSC_NAVIGATEBACK As Integer = 2

2. Copy the

Private Sub WebBrowser_CommandStateChange(ByVal Command As Long, ByVal Enable As Boolean)

On Error GoTo ErrorHandler

' e.command identifies the effected button
Select Case Command
Case CSC_NAVIGATEBACK 'Back button
' Enable OR Disable the Back button
MyToolbar.Buttons(1).Enabled = Enable
Case CSC_NAVIGATEFORWARD 'Forward button
' Enable OR Disable the Forward button
MyToolbar..Buttons(2).Enabled = Enable
End Select

Exit Sub

ErrorHandler:
msgbox "Is anything wrong with my IE control."
exit sub

End Sub

~~~~~~~~~~~~~

Note: You can use your button instead of toolbar button. Then you need to define the code like this.

Button1.Enabled = Enable

I hope this will works!


Benoyraj B

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Forward/Backward button problem while using Internet Control in VB 6.0


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway