I have created a customize windows form and I just don’t know how should I get access to the button click event when the button is inside the custom form and the method is in the main windows application.
thank you very much!
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.
In your form, create a custom event and make it fire whenever the button is pressed:
Now you have an event on your custom window that you can subscribe to from your main window.