Calling an Event from Another one

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ashkanull
    Forum Member
    • Jul 2008
    • 1

    Calling an Event from Another one

    Hi
    I have an input box and I check if the Enter key is pressed with

    if(System.IsKeyDown(13))then
    ...
    end

    so when Enter is pressed I need to call the codes written in my Button on click Event.
    Any suggestions?
  • Imagine Programming
    Indigo Rose Customer
    • Apr 2007
    • 4250

    #2
    Code:
    Page.ClickObject("Button1");
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment

    • RizlaUK
      Indigo Rose Customer
      • May 2006
      • 5478

      #3
      or put the code in a function and call it from the button and the onkey event
      Embrace change in your life, you never know, it could all work out for the best

      Comment

      • Imagine Programming
        Indigo Rose Customer
        • Apr 2007
        • 4250

        #4
        yep... hehe:P
        Bas Groothedde
        Imagine Programming :: Blog

        AMS8 Plugins
        IMXLH Compiler

        Comment

        Working...
        X