|
-
Jan 24th, 2008, 09:07 AM
#7
Thread Starter
Member
Re: [RESOLVED] Try/Catch
 Originally Posted by jmcilhinney
That Panel_Rest method has the signature of an event handler. If you're not using it to handle any events then what are those arguments for? Also, why are you passing the Exception object when you call it if you aren't using it?
I will have a few subs calling the Reset_Panel sub. It sort of resets the form with the beginning panels I have setup. Button One click event has an array of 4 panels. There will be like 4 more button click evens with as much as 15 panels in an array. Once the user sees these via the code in the click event, when the get past the '.length' it would create an exception, at which point I send that to the Reset to reset the panel back to the original where they can choose anothe button with different panels.
I am a noob here. I remember this kind of structure from BV6 many years ago although new to VB.Net and the try/catch argument. Can this be done another way to simplify the code?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|