As well as this event firing from the drop down, I would also like to be able to fire it from my code. Is this possible and if so how?
Thanks
Stu
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best way to do this is to wrap the code from the event into a method, and call it from both places.
BUT if you did want to call the event directly (which I don’t recommend), you can do it like this:
(Unless you use either the
senderorEventArgswithin the method, then you will need to supply these too)