Calling a Click Event - dynamically
-
I have a list of control names (in String form). Not the WinForm control object but the name of the control object. I need to call the click event associated with that control. I need to do this at run time dynamically. Is there a way to call that event? Not this is for a Window Form running in a C++ environment. Hope you can point me in the right direction. Thanks
Programmer Glenn Earl Graham Austin, TX
-
I have a list of control names (in String form). Not the WinForm control object but the name of the control object. I need to call the click event associated with that control. I need to do this at run time dynamically. Is there a way to call that event? Not this is for a Window Form running in a C++ environment. Hope you can point me in the right direction. Thanks
Programmer Glenn Earl Graham Austin, TX
I haven't tried this, but maybe this will help: How to: Simulate Mouse and Keyboard Events in Code[^] You should be able to get controls by indexing (by name) the Controls property of the form. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: