Console app in CF 2.0 question

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
 
P

Paul G. Tobey [eMVP]

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.
 
E

elena

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
 
P

Peter Foot

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
 
E

elena

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top