Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Web Browser Help


  • Please log in to reply
2 replies to this topic

#1 ThRaInpa


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 26 September 2008 - 01:54 AM

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?
  • 0

#2 WingedPanther73


    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 26 September 2008 - 07:31 AM

Disable the buttons by default.

You will need to use the OnKeypress (I think) event.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/

#3 gogetax1


    CC Newcomer

  • Member
  • PipPip
  • 16 posts

Posted 29 September 2008 - 03:50 AM

use the command try/except/end

  MyBackwardBtn.Enabled := False;

Edited by Jaan, 29 September 2008 - 11:51 AM.
Please use code tags when you are posting your codes! (I hope they are right)

  • 0

Also tagged with one or more of these keywords: pascal

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download