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???
Loading
Javeed M ShaikhPosted Apr 5, 2013, 11:02 AM
Javeed M ShaikhPosted Apr 5, 2013, 12:22 PM
Dillon GoedaPosted Apr 5, 2013, 12:14 PM
Javeed M ShaikhPosted Apr 5, 2013, 10:30 AM
you question is not clear, may be you can elaborate more or give us some examples. For what i understand is you want to write a common routine and you want to call that on any event, like button click, etc. So I am not sure if you just create a Sub/Function and pass the object as the parameter and run your routine based on the object's decision.