Morning All!

Name:  queryform.jpg
Views: 787
Size:  19.6 KB

I'm clutching at straws as to how to sort this out; I have a split container with navigation buttons on the left and number of panels that are then positioned into the right on the clicking of a navigation button.

I can sort out the click events, but I have also assigned keydown events on each of the navigation buttons, for example;

Code:
 
       'Key Response to pressing number 1 or numpad 1
        If e.KeyCode = Keys.D1 Or e.KeyCode = Keys.NumPad1 Then Project13_Panel.BringToFront()
        If e.KeyCode = Keys.D1 Or e.KeyCode = Keys.NumPad1 Then Project13Nav_Btn.Select()
        If e.KeyCode = Keys.D1 Or e.KeyCode = Keys.NumPad1 Then Project13_Panel.Location = New Point(280, 115)
        If e.KeyCode = Keys.D1 Or e.KeyCode = Keys.NumPad1 Then Project13_Panel.Visible = True


My question is a two parter:

Question 1 - Does anyone know how to reference the Launch(Enter) button on the right panel shown above in a keydown event to then launch a VBScript? I'm currently using a msgbox to test that it works.

Question 2 - Does anyone know how to launch a VBScript from a .NET form? the VBScript is located in a network NETLOGON folder. I would prefer to stay away from integrating the script into the .NET application as we are intending to use it as a front end to log-in scripts.

Thank you very much in advance!!

Chris