Application Startup

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?THVpcyBNZW5kZXM=?=

    #1

    Application Startup

    Dear Sirs,

    I can I know when my app starts if the shift key is pressed?

    Or better, I want that when somebody click on the icon to start the
    application if the shift key is pressed to enter in a config mode.


    Thanks in advance

    Luis
  • Phillip Ross Taylor

    #2
    Re: Application Startup

    I'm not entirely sure that you can. I'm pretty sure it's not passed to
    the application. However the second your application has started you
    can work out if it's down with something like this:

    public sub main()


    If (My.Computer.Ke yboard.ShiftKey Down) Then
    frmConfig.showD ialog()
    else
    frmMain.showDia log()
    end if

    end sub

    - Of course if you hold down shift, double click the key and take your
    finger off shift before the application really starts then it may miss
    the event. This is more like "If shift is held down when the
    application STARTS, rather than when the icon is clicked"

    Phill

    Comment

    Working...