Howdy, Stranger!

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

Categories

button pressed???

mOskimOski Member Posts: 44
I was wondering if its possible in VB6 that anywhere on the program, regardless of what form is shown, a key is pressed, a form will show. For example if 'F1' was pressed then form1 will show up...

thank you in advance...

Comments

  • bradwangbradwang Member Posts: 197
    A shortcut property can do it right? At least it's doable in VB.NET.


    [color=Green][size=1][b]Brad Wang - .NET Freelancer from China
    MSN: brad_wang_cn@hotmail.com
    Skype: brad_wang[/b][/size][/color]
  • BarkeeperBarkeeper Member Posts: 335
    : I was wondering if its possible in VB6 that anywhere on the program,
    : regardless of what form is shown, a key is pressed, a form will
    : show. For example if 'F1' was pressed then form1 will show up...
    :
    : thank you in advance...
    :

    You have to set the KeyPreview-Property on each Form to True. Then in each KeyUp-Event of each Form you have to put the Code to show the Form.
    ------------------------------------------
    Only stupidity of mankind and the universe
    are infinite, but i'm not sure concerning
    the universe. A. Einstein
Sign In or Register to comment.