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. C# interface

C# interface

Scheduled Pinned Locked Moved C#
csharptutorialquestioncareerworkspace
5 Posts 4 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 L 2 Replies 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

      Stop flooding !!! Best regards, A_l_e_x_e_y_.

      S 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

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        public delegate void OnMyEvent(FiresMyEvent sender);

        public class FiresMyEvent : System.Windows.Forms.Control
        {
        public event OnMyEvent MyEvent;

        protected override void OnClick( EventArgs e)
        {
        	if( null != MyEvent)
        		MyEvent( this);
        }
        

        }

        and yes "Stop flooding"


        "What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum led mike

        1 Reply Last reply
        0
        • A alexey N

          Stop flooding !!! Best regards, A_l_e_x_e_y_.

          S Offline
          S Offline
          Sebastian Schneider
          wrote on last edited by
          #4

          Why do people always assume the worst, namely that this guys is flooding on purpose? He probably sent it, saw that his message was not shown and then sent it again - without realizing that maybe his proxy was the culprit. Is it really that hard to stay polite and friendly? Why don't you simply write "You accidentally posted this twice." instead of " _STOP_ _FLOODING_ !!!1!!1 one exclamation-mark eleven !". You are gonna have a heart-attack before thirty, mark my words. Oh, and a few things to consider: a) That any reply will never stop anyone who has his mind set to flood a BBS. b) Being unfriendly might actually hurt someones feelings. c) If he was a troll, you would have given him reason to continue by getting emotional. SEB -- Contra vim mortem non est medicamen in hortem. -- modified at 1:49 Wednesday 10th May, 2006

          A 1 Reply Last reply
          0
          • S Sebastian Schneider

            Why do people always assume the worst, namely that this guys is flooding on purpose? He probably sent it, saw that his message was not shown and then sent it again - without realizing that maybe his proxy was the culprit. Is it really that hard to stay polite and friendly? Why don't you simply write "You accidentally posted this twice." instead of " _STOP_ _FLOODING_ !!!1!!1 one exclamation-mark eleven !". You are gonna have a heart-attack before thirty, mark my words. Oh, and a few things to consider: a) That any reply will never stop anyone who has his mind set to flood a BBS. b) Being unfriendly might actually hurt someones feelings. c) If he was a troll, you would have given him reason to continue by getting emotional. SEB -- Contra vim mortem non est medicamen in hortem. -- modified at 1:49 Wednesday 10th May, 2006

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

            Sebastian Schneider wrote:

            Why don't you simply write "You accidentally posted this twice."

            More than twice, and same problem with different header. I call this "flooding", how about you ? And, finally - he can delete thess messages after "multi-posting", but he don't do that. Anyway, respect to you. I agree with your "polite" opinion. 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