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 ShaikhRank #839 · 2.7K reputationPosted Apr 5, 2013, 7:02 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Apr 5, 2013, 6:30 AM EDT
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.
Dillon Goeda22 reputationPosted Apr 5, 2013, 8:14 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Apr 5, 2013, 8:22 AM EDT