Hello there,

I have a need to call GXOpenInput/GXCloseInput in a WM5 VB.NET application.
I want my application to be able to capture the F6/F7 keys.

So as I am not sure how to call these API's I was wondering if someone can
provide an example on how to call them in WM5 VB.NET.

You help would be appreciated.

Thanks
Devron

RE: GXOpenInput by Shaik

Shaik
Sun Apr 08 05:30:03 CDT 2007

Dear DevRon, (Developer Ron...! good name)

The following detail was replied for your prior question in windows group...
ay be you got it or not...
Replying same for your convinience for choice....

Declare these two API functions in any module in a vb.net project
'* ---------------------------------------------------
<DllImport("gx.dll", _
CharSet:=CharSet.Auto, _
EntryPoint:="?XOpenInput@@YAHXZ")> _
Public Sub GXOpenInput()
End Sub
'* ---------------------------------------------------
<DllImport("gx.dll", _
CharSet:=CharSet.Auto, _
EntryPoint:="?GXCloseInput@@YAHXZ")> _
Public Sub GXCloseInput()
End Sub
'* ---------------------------------------------------

Just call GXOpenInput() in the start-up of your application
ex:
Sub Main() Startup Routine
'* -----------------
Sub Main()
GXOpenInput()
End Sub
'* -----------------
or
'* -----------------
frm_Load(...) Handles MyBase.Load events
GXOpenInput()
End Sub
'* -----------------
Note: Make sure to call GXCloseInput during exiting your form/application

Thanks / Best Regards

Shaik Faheem Ahmed
skfaheem@gmail.com
'* ----------------------------------------------------------


RE: GXOpenInput by fred

fred
Sun Jun 03 22:10:00 CDT 2007

Hi and thanks for the reply...it worked great and allows me to capture the
F6/F7 keys....but.

The F1/F2 keys are no longer captured by the form key events. So it seems by
using GXOpenInput I get the F6/F7 Keys but not the F1/F2 keys. I think the
F1/F2 keys are assigned to the device menus.

Anyhow is someone able to help me out with this? basically i'm looking for
full access to the F1->F10 keys.

Appreciate any help.

Thanks
Devron

--
Devron Blatchford


"Shaik Faheem Ahmed" wrote:

> Dear DevRon, (Developer Ron...! good name)
>
> The following detail was replied for your prior question in windows group...
> ay be you got it or not...
> Replying same for your convinience for choice....
>
> Declare these two API functions in any module in a vb.net project
> '* ---------------------------------------------------
> <DllImport("gx.dll", _
> CharSet:=CharSet.Auto, _
> EntryPoint:="?XOpenInput@@YAHXZ")> _
> Public Sub GXOpenInput()
> End Sub
> '* ---------------------------------------------------
> <DllImport("gx.dll", _
> CharSet:=CharSet.Auto, _
> EntryPoint:="?GXCloseInput@@YAHXZ")> _
> Public Sub GXCloseInput()
> End Sub
> '* ---------------------------------------------------
>
> Just call GXOpenInput() in the start-up of your application
> ex:
> Sub Main() Startup Routine
> '* -----------------
> Sub Main()
> GXOpenInput()
> End Sub
> '* -----------------
> or
> '* -----------------
> frm_Load(...) Handles MyBase.Load events
> GXOpenInput()
> End Sub
> '* -----------------
> Note: Make sure to call GXCloseInput during exiting your form/application
>
> Thanks / Best Regards
>
> Shaik Faheem Ahmed
> skfaheem@gmail.com
> '* ----------------------------------------------------------
>