Console app in CF 2.0 question

  • Thread starter Thread starter elena
  • Start date Start date
E

elena

Hi, All
I need to program function keys on the unit keybord. Application should run
w/o any user interface. I selected Console temple for the app (I am using
VB.net CF 2.0, OS W CE 5.0). App is very simple all it does just printing the
screen.
By each time just before printing it starts with Cursor Hourglass then it
prints the screen including Cursor.Wait. My question how to get ride of this,
there is app doesn't recognize Cursor.Hide method.
please, help
 
You could try P/Invoking ShowCursor. Here's the C declaration:

int ShowCursor( BOOL bShow );

Set bShow to 0 to turn it off and to 1 to turn it back on when you're done.

Paul T.
 
Thank you Paul,
I found declaration of ShowCursor where lib is "user32", what should i use
in CF 2.0? "coreddl.dll" - doesn't work i mean the cursor is still shows.
please, advice
 
The wait cursor is always shown when the .NETCF runtime starts up and you
cannot turn this off, so even though you have built a "silent" console
application you'll still get the wait cursor every time it loads.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility
 
Thank you Peter, it explaines the issue

Peter Foot said:
The wait cursor is always shown when the .NETCF runtime starts up and you
cannot turn this off, so even though you have built a "silent" console
application you'll still get the wait cursor every time it loads.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility
 
Back
Top