I found out a cool way to modify a procedure so that you can create your own and add handles a while back after viewing some code on PlanetSourceCode.
I used this on one form of my program and honestly I cant say that I care for it.
Its a database screen were youre viewing data. When the form is loaded, you disable all of the textboxes so no changes can be made.
I had a procedure to do this, with the handle "MyBase.Load"
It worked and I did a few more, for the cancel, save and OK buttons.
Now Im starting to realize (after I havnt worked on this particular form for a month) that its really a bear to get everything lined up again, figuring out what went were.
I just took out all of the handles and just included calls to the sub procedures instead.
Is there one way thats better for some particular reason? Maybe one way has less overhead?
I assume its faster/easier for the program to jump directly to the handle than it is to jump to a handle and then to a sub procedure.
I used this on one form of my program and honestly I cant say that I care for it.
Its a database screen were youre viewing data. When the form is loaded, you disable all of the textboxes so no changes can be made.
I had a procedure to do this, with the handle "MyBase.Load"
It worked and I did a few more, for the cancel, save and OK buttons.
Now Im starting to realize (after I havnt worked on this particular form for a month) that its really a bear to get everything lined up again, figuring out what went were.
I just took out all of the handles and just included calls to the sub procedures instead.
Is there one way thats better for some particular reason? Maybe one way has less overhead?
I assume its faster/easier for the program to jump directly to the handle than it is to jump to a handle and then to a sub procedure.