Same void between multiple forms in the same project?

ken76

Member
Joined
Nov 15, 2018
Messages
23
Programming Experience
5-10
Is it possible to use the same void between multiple forms in the same project?
If it possible, how is it done?
 
I assume that you meant "same method", rather than "same void". If the method is public, static, and has no dependencies on that containing class/form then yes, that method can be shared. Good programming practices would suggest refactoring and moving that method out of the form specific class and into a utility or helper class.
 

Latest posts

Back
Top Bottom