Control flow of program when event is raised


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: Control flow of program when event is raised

  1. #1
    Join Date
    Jul 2004
    Posts
    42

    Control flow of program when event is raised

    I created a simple component that raised an event in 1 of its method.
    When this component was consumed by a client application and its method was called, the event was raised.
    However some of the codes in the sub-program that called the method does not seem to get executed.

    My question is, does the code in the event handler that handles the event, run concurrently with the codes of the method that raised the event?

    For example:
    Component1 has a method (method1) that raised an event (event1).
    Client1 created an instance of component1 and invoked method1 in a subprogram (sub1), hence event1 is raised. Event1 is handled by an event handler (handler1).
    Do the codes in component1.method1 wait for the code in client1.handler1 to finish execution before continuing or do the codes run concurrently (component1.method1 and client1.handler1)?

    I hope you understand what I am trying to say.

    Do appreciate if someone can help.

    Thank you in advance.
    Last edited by Magdalene; 10-13-2006 at 12:28 AM.

Similar Threads

  1. Replies: 2
    Last Post: 11-21-2005, 03:10 PM
  2. Replies: 0
    Last Post: 10-05-2005, 07:28 AM
  3. trap scrolling event of browser control
    By tk in forum VB Classic
    Replies: 0
    Last Post: 03-23-2001, 09:19 PM
  4. WEIRD ActiveX control problem
    By Glenn in forum ASP.NET
    Replies: 0
    Last Post: 12-13-2000, 07:55 AM
  5. control can't receive f1 keyboard event (keydown)
    By chery yvens in forum VB Classic
    Replies: 1
    Last Post: 05-17-2000, 04:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center