Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,555 of 10,840    |
|    Dikkie Dik to Harvest    |
|    Re: Referring to an Event on a Different    |
|    12 Jun 05 22:25:35    |
   
   From: nospam@nospam.org   
      
   Harvest Wind@comcast.net wrote:   
   > Hello:   
   >   
   > I have figured out the "Form Effect" question above. However, I'm using VB   
   > 5.0 and want to refer to an event on a different form.   
   >   
   > I have an MDI form with help on it. When the user selects help, I want to   
   > see what form is active "Me.ActiveForm"...then I want to select the "Help"   
   > button's click event on that form. How do I programatically select the   
   > button and click it from the MDI form in visual basic?   
   >   
   > Your assistance would be much appreciated.   
   >   
   > Joe-Paul   
   >   
   >   
   >   
   You don't. Just create a public method on the form ("public sub   
   ShowHelp()") and call that both from the button's click event and from   
   outside the form.   
      
   Best regards   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca