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. How to update progressBar from another class

How to update progressBar from another class

Scheduled Pinned Locked Moved C#
csharpc++databasevisual-studiocom
26 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.
  • M MichCl

    I wound up leaving the original delegate in my iCR and everything you originally recommended above. Then I created a separate delegate and handler in my C_Comm.cs class. I couldn't see any other way to update my progressBar and also share the same delegate and event. Thanks for the help!

    J Offline
    J Offline
    Jibesh
    wrote on last edited by
    #21

    I dont see any error in your declaration, i.e the delegate method is declared in Comm.cs file which is referred in all the other 3(or more project) iCR,CR5 and form Class. so the delegate should be available in all other classes and you need to include the proper namespaces in other project files.

    Jibesh V P

    M 1 Reply Last reply
    0
    • J Jibesh

      I dont see any error in your declaration, i.e the delegate method is declared in Comm.cs file which is referred in all the other 3(or more project) iCR,CR5 and form Class. so the delegate should be available in all other classes and you need to include the proper namespaces in other project files.

      Jibesh V P

      M Offline
      M Offline
      MichCl
      wrote on last edited by
      #22

      Thank you so much for the help. We have a very small work group here, and they are not programmers and don't understand this stuff (not to mention me having a tough time with events and this architecture). It turned out I wasn't "using" C_Comm in my interface. Once I did that and fixed a couple of declarations to use the C_Comm version of the Handler, all worked. :)

      J 1 Reply Last reply
      0
      • M MichCl

        Thank you so much for the help. We have a very small work group here, and they are not programmers and don't understand this stuff (not to mention me having a tough time with events and this architecture). It turned out I wasn't "using" C_Comm in my interface. Once I did that and fixed a couple of declarations to use the C_Comm version of the Handler, all worked. :)

        J Offline
        J Offline
        Jibesh
        wrote on last edited by
        #23

        Glad to hear this. Good Luck Jibesh

        Jibesh V P

        M 2 Replies Last reply
        0
        • J Jibesh

          Glad to hear this. Good Luck Jibesh

          Jibesh V P

          M Offline
          M Offline
          MichCl
          wrote on last edited by
          #24

          Thank you! And thanks for sticking with this thread.

          J 1 Reply Last reply
          0
          • M MichCl

            Thank you! And thanks for sticking with this thread.

            J Offline
            J Offline
            Jibesh
            wrote on last edited by
            #25

            You are welcome!! Cheers!

            Jibesh V P

            1 Reply Last reply
            0
            • J Jibesh

              Glad to hear this. Good Luck Jibesh

              Jibesh V P

              M Offline
              M Offline
              MichCl
              wrote on last edited by
              #26

              @jibesh - I added an interface (see my recent question), and my event is null when I try to update my progress bar. I know you have a good idea about events and interfaces. If you could take a look at my newly posted question(Thursday post maybe), I'd appreciate it. Thanks!

              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