Child Form From its parent form
C#
3
Posts
3
Posters
0
Views
1
Watching
-
Pls i want to access the private methods and events of a MDIChild Form from its parent Form and execute them, I do not know the how. Thanks.
-
Pls i want to access the private methods and events of a MDIChild Form from its parent Form and execute them, I do not know the how. Thanks.
Firstly: you shouldn't do it. If method is to be called from outside of the class, it should be public, not private. And that's the path you should follow. The backdoor to access private methods and fields is reflection (but it's bad). But I think you can solve your issue by changing methods' access to public.
-
Pls i want to access the private methods and events of a MDIChild Form from its parent Form and execute them, I do not know the how. Thanks.