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. .NET (Core and Framework)
  4. avoid click event

avoid click event

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorial
9 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.
  • N Offline
    N Offline
    neeraj max
    wrote on last edited by
    #1

    i have two panel in my form. on click event of button in panel1 it shows panel2 and panel1 get hide. But when i click twice on button1 which is on panel1 it fires event of button2 which is on panel two. how to avoid it. :mad:

    L A P 3 Replies Last reply
    0
    • N neeraj max

      i have two panel in my form. on click event of button in panel1 it shows panel2 and panel1 get hide. But when i click twice on button1 which is on panel1 it fires event of button2 which is on panel two. how to avoid it. :mad:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You also posted this question here[^]; please post in one forum only.

      One of these days I'm going to think of a really clever signature.

      N 1 Reply Last reply
      0
      • L Lost User

        You also posted this question here[^]; please post in one forum only.

        One of these days I'm going to think of a really clever signature.

        N Offline
        N Offline
        neeraj max
        wrote on last edited by
        #3

        i wasnt sure whether it got post or not so i post it again... kindly delete this particular post of mine , i am unable to delete it. thanks.

        L 1 Reply Last reply
        0
        • N neeraj max

          i have two panel in my form. on click event of button in panel1 it shows panel2 and panel1 get hide. But when i click twice on button1 which is on panel1 it fires event of button2 which is on panel two. how to avoid it. :mad:

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #4

          Looks like you hide button1 and show button2. Try to keep button1 and button2 separate instead of keeping one on top of the other. When you click button1 once, disable button1 and enable button2 and panel2.

          WP7.5 Apps - XKCD | Calvin | SMBC | Sound Meter | Speed Dial

          N 1 Reply Last reply
          0
          • A Abhinav S

            Looks like you hide button1 and show button2. Try to keep button1 and button2 separate instead of keeping one on top of the other. When you click button1 once, disable button1 and enable button2 and panel2.

            WP7.5 Apps - XKCD | Calvin | SMBC | Sound Meter | Speed Dial

            N Offline
            N Offline
            neeraj max
            wrote on last edited by
            #5

            button1 is on panel1 and button2 is on panel 2... panel1 is above panel2 and panel2 is hidden.. on click event of button1 what i do is hide panel1 and show panel2... on single click of button1 it works properly but when we click it twice it complete it task and as panel2 replace panel1's position and come above it. its control (button2) get focus and its event get fire... :omg: :confused:

            A 1 Reply Last reply
            0
            • N neeraj max

              button1 is on panel1 and button2 is on panel 2... panel1 is above panel2 and panel2 is hidden.. on click event of button1 what i do is hide panel1 and show panel2... on single click of button1 it works properly but when we click it twice it complete it task and as panel2 replace panel1's position and come above it. its control (button2) get focus and its event get fire... :omg: :confused:

              A Offline
              A Offline
              Abhinav S
              wrote on last edited by
              #6

              Disable button1 until tasks complete and then enable it again.

              WP7.5 Apps - XKCD | Calvin | SMBC | Sound Meter | Speed Dial

              N 1 Reply Last reply
              0
              • A Abhinav S

                Disable button1 until tasks complete and then enable it again.

                WP7.5 Apps - XKCD | Calvin | SMBC | Sound Meter | Speed Dial

                N Offline
                N Offline
                neeraj max
                wrote on last edited by
                #7

                tried alredy but it is not working... :mad:

                1 Reply Last reply
                0
                • N neeraj max

                  i have two panel in my form. on click event of button in panel1 it shows panel2 and panel1 get hide. But when i click twice on button1 which is on panel1 it fires event of button2 which is on panel two. how to avoid it. :mad:

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  Pick one forum and stick with it. That way, answers won't be fragmented.

                  1 Reply Last reply
                  0
                  • N neeraj max

                    i wasnt sure whether it got post or not so i post it again... kindly delete this particular post of mine , i am unable to delete it. thanks.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    You can see that it got posted when you first enter it, or by refreshing the view in your browser.

                    One of these days I'm going to think of a really clever signature.

                    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