Can't Press ESC or Zlt+F4

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

  • : 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.

Howdy, Stranger!

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

Categories

In this Discussion