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. Urgent button disabling problem

Urgent button disabling problem

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 3 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
    Sunshine Always
    wrote on last edited by
    #1

    hi in my code, i am saying button.enabled = false; ... ... ... ... progressbar.performstep(); label.text = "Pass"; button.enabled = true; the button is grayed out during this, but if i have clicked during this, it takes the click event after "Pass" is displayed. how do i prevent this? i need an urgent solution. please see if anyone can help me with some suggestion. thanks.

    L 1 Reply Last reply
    0
    • S Sunshine Always

      hi in my code, i am saying button.enabled = false; ... ... ... ... progressbar.performstep(); label.text = "Pass"; button.enabled = true; the button is grayed out during this, but if i have clicked during this, it takes the click event after "Pass" is displayed. how do i prevent this? i need an urgent solution. please see if anyone can help me with some suggestion. thanks.

      L Offline
      L Offline
      laddie 0
      wrote on last edited by
      #2

      What you exactly want button click will be fired after the text chenges to pass because you have enabled the button.

      S 1 Reply Last reply
      0
      • L laddie 0

        What you exactly want button click will be fired after the text chenges to pass because you have enabled the button.

        S Offline
        S Offline
        Sunshine Always
        wrote on last edited by
        #3

        i am clicking the button before the text changes to pass.

        V 1 Reply Last reply
        0
        • S Sunshine Always

          i am clicking the button before the text changes to pass.

          V Offline
          V Offline
          vikas maan
          wrote on last edited by
          #4

          Hi In a separate thread, check the messages in application queues parallely. If any message of button click comes and you are doing "pass" processing work delete that message from application quese. Size of application queue would be 8. :)

          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