Sub name evaluation

Discussion in 'Questions (Windows Mobile)' started by Cableguy, Sep 27, 2008.

  1. Cableguy

    Cableguy Expert Licensed User

    Is it possible to determine wich sub caused an event to fire?

    I'm using webbrowser, and would like to evaluate in the documentcompleted event wich sub had the navigate method that fired this event(has this event is common to all navigate methods)...
    This way I could retrieve the information I need to a particular navigate method(url), and pass it to the apropiate sub or have it returned to the calling sub...
     
  2. agraham

    agraham Expert Licensed User

    Save an identifier in a global before calling Navigate and check it in DocumentCompleted.
     
  3. Cableguy

    Cableguy Expert Licensed User

    I remebered that after I posted, but was hopping for a more "internal" way of doing that...but yes, it works...I then use the case select to act acording to the calling method needs...

    Why do I keep asking questions, if the answer keeps popng out after the question is done????
     
  4. taximania

    taximania Well-Known Member Licensed User

    Your question will be read by others.

    And perhaps help them :sign0188:
     
  5. Ricky D

    Ricky D Well-Known Member Licensed User

    a theory

    Cableguy that sort of thing happens to me all the time when I scratch my head - i walk away and do something else or while I am in the shower the answer comes - not when I'm thinking consciously about it. Almost without fail lol.

    I do believe I'm not alone in this - when I programmed for a living I used to leave my desk quite often and really didn't know why I did but then it dawned on me that's how I'd crack problems that I couldn't think past.

    Sometimes it happens just as I'm trying to go to sleep too.

    I guess in your case you've left your thread, and then are waiting for an answer. You probably switch off just after posting it enough for the answer to come but too late to stop posting it.

    regards, Ricky
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice