key press

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bershama

    #1

    key press

    i maid a picturebox and i want when i press "up aroww"
    the picturebox comes up so please send me the code for it
    (with the default names) ... :-))
  • Leon Jollans

    #2
    Re: key press

    /** in C#... assuming "this" is a control **/
    this.KeyUp += new KeyEventHandler (this.handleKey Up);

    ....

    private void handleKeyUp(obj ect sender, KeyEventArgs e){
    if( e.KeyCode == Keys.Up){
    myPictureBox.Vi sible = true;
    }
    }

    hth

    Leon

    "bershama" <thebpp@hotmail .com> wrote in message
    news:a6a001c380 fd$a691cc80$a60 1280a@phx.gbl.. .[color=blue]
    > i maid a picturebox and i want when i press "up aroww"
    > the picturebox comes up so please send me the code for it
    > (with the default names) ... :-))[/color]


    Comment

    Working...