Found the following interesting discussion in the Newsgroups:
| fire a click event from another form by:Anonymous | |
| Hello, I have two forms - a start form running in the background and a content form in the foreground. When a timer fires on the start form, I need to fire the click event for a button on the other form. I have delcalered the 2nd form as a friend, but still cannot get to the button's click event. Any help would be very appreciated - thnx | |
| Reply: by:Anonymous | |
| Hi, If you are using the Mdiform use the following statements. and note that you need to declare the procedure which is handling the event Click of the button as public.
where button1 is the button placed in the form2. Actually here you are not raising the event, we are indirectly tiggering the event by calling a procedure. If you don't have a MDI form. Have some public module and keep the instance of form2 there and access it in form2 or keep the instance in the form1 itself and access it. I hope this may help you. Sadha Sivam S Malleable Minds Software Pvt Ltd., India | |
| Reply: by:Jens Blom | |
| Hi try this
/jens | |
Posted by Xander Zelders
1 Comments
