I am making a web browser in Delphi (PASCAL), and i have this problem... When there is no-where to go back/forward to and i click the back/forward buttons, an error pops up and crashes the program!
Is there any way to counter this?
ALSO: Does anyone know how to make the address bar load up the page by just pressing the 'Enter' button rather than having to click the 'Go' button?
Web Browser Help
Started by ThRaInpa, Sep 26 2008 01:54 AM
2 replies to this topic
#1
Posted 26 September 2008 - 01:54 AM
|
|
|
#2
Posted 26 September 2008 - 07:31 AM
Disable the buttons by default.
You will need to use the OnKeypress (I think) event.
You will need to use the OnKeypress (I think) event.
#3
Posted 29 September 2008 - 03:50 AM
use the command try/except/end
like try Webbrowser1.backward; except MyBackwardBtn.Enabled := False; end;
Edited by Jaan, 29 September 2008 - 11:51 AM.
Please use code tags when you are posting your codes! (I hope they are right)


Sign In
Create Account

Back to top









