Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Can't Press ESC or Zlt+F4

linz_himelinz_hime Member Posts: 36
I set the form in Maximize and the controlbox is False (i don't use the form's caption). When i make it to an exe, i can't press esc or alt+f4.
Can anyone help me?


Rgds


Ling^-^

Comments

  • PavlinIIPavlinII Member Posts: 404
    : I set the form in Maximize and the controlbox is False (i don't use the form's caption). When i make it to an exe, i can't press esc or alt+f4.
    : Can anyone help me?
    :
    :
    : Rgds
    :
    :
    : Ling^-^
    :
    Hi, you can pres ALT+F4, but Form_KeyPress sub is not raised...
    Just simulate it...
    [code]Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 115 And Shift = 4 Then MsgBox "ALT + F4" : End
    If KeyCode = 27 And Shift = 0 Then MsgBox "ESC"
    End Sub[/code]The ALT+F4 will End your app

    PavlinII

Sign In or Register to comment.