Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
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:
  #1  
Old July 21st, 2005, 08:09 AM
captainchainsaw captainchainsaw is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 1 captainchainsaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m
Reputation Power: 0
Question web browser "back" button

Afternoon all. I am putting together a small web browser application and I have a problem with the "back" button. If I navigate to a website then click back twice I get an error (can't remember at the moment what the error message was). I think it is happening because there is no site to navigate "back" to. So what I really want to know is how would I say "if there is no site then disable the back button"?

I tried and it didn't work:

if wb_browser.navigate = false then
cmd_back.enable = false
else
wb_browser.navigate (URL)
end if

I've not used VB in a few years and I expect this is really simple so I appreciate any light you can shed on this.


Cheers,

CaptainChainsaw

Reply With Quote
  #2  
Old July 21st, 2005, 12:12 PM
kboek's Avatar
kboek kboek is offline
Consuming Human
ASP Free Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Norway
Posts: 823 kboek User rank is Second Lieutenant (5000 - 10000 Reputation Level)kboek User rank is Second Lieutenant (5000 - 10000 Reputation Level)kboek User rank is Second Lieutenant (5000 - 10000 Reputation Level)kboek User rank is Second Lieutenant (5000 - 10000 Reputation Level)kboek User rank is Second Lieutenant (5000 - 10000 Reputation Level)kboek User rank is Second Lieutenant (5000 - 10000 Reputation Level)kboek User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 11 h 27 m 34 sec
Reputation Power: 103
Send a message via MSN to kboek
Facebook
Would this help?
Code:
If URL = "" Then
  cmd_back.enable = false
Else
  wb_browser.navigate (URL)
End If

Or

If Len(URL) = 0 Then
  cmd_back.enable = false
Else
  wb_browser.navigate (URL)
End If
__________________
Solutions brought to you by Raskenlund ICT & Media

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > web browser "back" button


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 2 hosted by Hostway
Stay green...Green IT