View Single Post
Old Feb 6th, 2007, 4:41 PM   #2
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
i havent't done any c#, but i think that language has functions so just put your code that is inside button1 into a function/procedure then call that function/procedure when ever you need to perform that task.

Edit: or you could call button1s procedure instead of doing suggested above
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote