|
-
Aug 13th, 2014, 10:29 PM
#1
Re: Sub within a Sub
Besides it's the wrong Sender too... the sender in the Form load would be the form, but the sender of a button click is the button. So to pass the form as the sender to a button click event handler would be very bad. Almost as bad as crossing the streams.
Now, another (and cleaner option in my opinion) is to move the code to a sub... then the load event handler and the form load event handlers would simply call that sub.
-tg
Tags for this Thread
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
|