Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Events in C# Interface

Events in C# Interface

Scheduled Pinned Locked Moved C#
csharptutorialquestioncareerworkspace
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    skrishnasarma
    wrote on last edited by
    #1

    Development Environment: C#/VS2005 I have an interface for doing a time consuming back end operation, the caller is a GUI program, I want to inform the caller that % of job completed in frequent intervals. (say for example 25%, 50% and 75% completed) . With event can we achieve this? That is event will be raised from the interface and caller will wait for the event? Any ideas or Sample code? Regards Sarma

    A 1 Reply Last reply
    0
    • S skrishnasarma

      Development Environment: C#/VS2005 I have an interface for doing a time consuming back end operation, the caller is a GUI program, I want to inform the caller that % of job completed in frequent intervals. (say for example 25%, 50% and 75% completed) . With event can we achieve this? That is event will be raised from the interface and caller will wait for the event? Any ideas or Sample code? Regards Sarma

      A Offline
      A Offline
      alexey N
      wrote on last edited by
      #2

      skrishnasarma wrote:

      With event can we achieve this?

      Yes. Best regards, A_l_e_x_e_y_.

      S 1 Reply Last reply
      0
      • A alexey N

        skrishnasarma wrote:

        With event can we achieve this?

        Yes. Best regards, A_l_e_x_e_y_.

        S Offline
        S Offline
        skrishnasarma
        wrote on last edited by
        #3

        Then how we achieve this?

        A 1 Reply Last reply
        0
        • S skrishnasarma

          Then how we achieve this?

          A Offline
          A Offline
          alexey N
          wrote on last edited by
          #4

          As you say:

          event will be raised from the interface and caller will wait for the event

          But, from class of this interface, not from interface. Best regards, A_l_e_x_e_y_. -- modified at 0:57 Wednesday 10th May, 2006

          S 1 Reply Last reply
          0
          • A alexey N

            As you say:

            event will be raised from the interface and caller will wait for the event

            But, from class of this interface, not from interface. Best regards, A_l_e_x_e_y_. -- modified at 0:57 Wednesday 10th May, 2006

            S Offline
            S Offline
            skrishnasarma
            wrote on last edited by
            #5

            Thanks Alexey, Shall I get any sample code on this?

            A 1 Reply Last reply
            0
            • S skrishnasarma

              Thanks Alexey, Shall I get any sample code on this?

              A Offline
              A Offline
              alexey N
              wrote on last edited by
              #6

              Read this article: http://www.codeproject.com/useritems/DelegatesEvents.asp Best regards, A_l_e_x_e_y_.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups