CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2002
    Posts
    41

    Writing Event Handler, how?

    I need a handler....

    I have two forms.
    Lets call them FormA and FormB.

    On formA I want a handler called NewRecipeLoaded..

    When a certain button on FormB is pushed I want to raise an event on FormA
    for NewRecipeLoaded.

    I know on formB I want RaiseEvent NewRecipeLoaded.

    But how do I declare this on FormA and how do I code the procedure?

    Thanks for any help

  2. #2
    Join Date
    Sep 2002
    Location
    Germany
    Posts
    4

    easy...

    you must call form2 from form1, then


    in Form1:

    in the sub you call form2:

    AddHandler oForm2.button.Click, AddressOf NewRecipeLoaded


    in Form2:

    Public Event NewRecipeLoaded()
    I know that I don't know anything

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured