I need a really basic sample of how to call the same code from multiple declarations.
Basically I have some code that I would like to be ran when different things happen on a form. Currently I have cut and pasted the code throughout my program as a work around till I figure out how to "reuse" the code with in the program.
I think one option would be to create a class that could be called from multiple points in the program. Obviously there is a better solution than having the same code in multiple places.
if someone could show me a simple example of how to reuse code with in an app I think I could bang this one out.
Thanks in advance,
swu
Basically I have some code that I would like to be ran when different things happen on a form. Currently I have cut and pasted the code throughout my program as a work around till I figure out how to "reuse" the code with in the program.
I think one option would be to create a class that could be called from multiple points in the program. Obviously there is a better solution than having the same code in multiple places.
if someone could show me a simple example of how to reuse code with in an app I think I could bang this one out.
Thanks in advance,
swu