back button and forward button issue
Posted: 07 Sep 2005, 11:48
whats up everyone, ok my problem is the back and forward buttons in a browser im developing within Visual Basic
ok so i know the
backbutton.GoBack
forwardbutton.GoForward
and they work, but only if the browser has something to go forward or back to...
so as you can see i get an error when i run my project and hit either button as the first thing i do.
error
so i fix that by disabling the buttons at form load and enable the back button when a i click the go button, and enable the forward button when i click the back button....
well the main issue is, how can i keep the back button from trying to go back to something that isnt there, when its "run out of pages to go back to or forwards to"
ive tried a few different IF Then statements but they didnt do the job
any ideas?
ok so i know the
backbutton.GoBack
forwardbutton.GoForward
and they work, but only if the browser has something to go forward or back to...
so as you can see i get an error when i run my project and hit either button as the first thing i do.
error
so i fix that by disabling the buttons at form load and enable the back button when a i click the go button, and enable the forward button when i click the back button....
well the main issue is, how can i keep the back button from trying to go back to something that isnt there, when its "run out of pages to go back to or forwards to"
ive tried a few different IF Then statements but they didnt do the job
any ideas?