Library event procedures with parameters

Discussion in 'Questions (Windows Mobile)' started by agraham, Oct 4, 2007.

  1. agraham

    agraham Expert Licensed User

    A question for Erel

    I know how to implement event procedures in a library to call B4PPC event subs without parameters.

    Would you be willing (if it is actually possible) to indicate how to code a library to pass one or more parameters picked from the EventArgs back to a B4PPC event sub - like the KeyPress event does for example?
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can't.
    You should use a variable or a property in the library as the argument.
    The .Net CF (at least 1.0) can't handle unknown custom events (at runtime only).
    Therefore Basic4ppc can only handle ErrorHandler events.
  3. agraham

    agraham Expert Licensed User

    Thanks Erel. I suspected that might be the case but wanted to be sure.