Multiple Button Clicks C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xxmellyxx
    New Member
    • Oct 2007
    • 1

    Multiple Button Clicks C#

    how can i allow a button to have multiple clicks?

    basically im creating a simulation of a lift, when someone clicks the up button, level one highlights, when they click the up button AGAIN level two is highlighted etc? Im really new to this programming thing. Im using visual studio.

    Major help needed.

    Thanks :)
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by xxmellyxx
    how can i allow a button to have multiple clicks?

    basically im creating a simulation of a lift, when someone clicks the up button, level one highlights, when they click the up button AGAIN level two is highlighted etc? Im really new to this programming thing. Im using visual studio.

    Major help needed.

    Thanks :)
    Perhaps reading an event handling tutorial is in order here.

    Comment

    • ankurpatel
      New Member
      • Oct 2007
      • 5

      #3
      i thing U use Delegation Concept in your Project
      to Solve Problem.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        You can use a single button handling event. just have a state-model that you examine and modify. (i.e. state1=lift in level 1 postion, state2=lift in level2 position, etc)

        Actually it seems like you aught to have had a state-model type thing already anyway.

        Comment

        Working...