use code elsewhere without copy and paste
Hey Guys,
I want to know if there is a way to use the code in a button somewhere else without copy and paste it?? e.g if a DialogResult = yes, I want to execute the same code in the button or I want to give the user a specific time to run the app, after that the 'logout' button must be clicked, or the code in that button must be executed???