Jump to content

Web Browser Help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
ThRaInpa

ThRaInpa

    Newbie

  • Members
  • Pip
  • 1 posts
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?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Disable the buttons by default.

You will need to use the OnKeypress (I think) event.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
gogetax1

gogetax1

    Newbie

  • Members
  • PipPip
  • 14 posts
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)