PC Review


Reply
Thread Tools Rate Thread

Console app in CF 2.0 question

 
 
elena
Guest
Posts: n/a
 
      16th Apr 2009
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
 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      16th Apr 2009
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.

"elena" <(E-Mail Removed)> wrote in message
news:F1B36B6E-28CA-4A5B-81FD-(E-Mail Removed)...
> 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



 
Reply With Quote
 
elena
Guest
Posts: n/a
 
      17th Apr 2009
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

"Paul G. Tobey [eMVP]" wrote:

> 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.
>
> "elena" <(E-Mail Removed)> wrote in message
> news:F1B36B6E-28CA-4A5B-81FD-(E-Mail Removed)...
> > 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

>
>
>

 
Reply With Quote
 
Peter Foot
Guest
Posts: n/a
 
      18th Apr 2009
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

"elena" <(E-Mail Removed)> wrote in message
news:46EC1C71-17F2-4A6C-A390-(E-Mail Removed)...
> 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
>
> "Paul G. Tobey [eMVP]" wrote:
>
>> 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.
>>
>> "elena" <(E-Mail Removed)> wrote in message
>> news:F1B36B6E-28CA-4A5B-81FD-(E-Mail Removed)...
>> > 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

>>
>>
>>

 
Reply With Quote
 
elena
Guest
Posts: n/a
 
      20th Apr 2009
Thank you Peter, it explaines the issue

"Peter Foot" wrote:

> 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
>
> "elena" <(E-Mail Removed)> wrote in message
> news:46EC1C71-17F2-4A6C-A390-(E-Mail Removed)...
> > 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
> >
> > "Paul G. Tobey [eMVP]" wrote:
> >
> >> 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.
> >>
> >> "elena" <(E-Mail Removed)> wrote in message
> >> news:F1B36B6E-28CA-4A5B-81FD-(E-Mail Removed)...
> >> > 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
> >>
> >>
> >>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yet another GUI/Console question per9000 Microsoft C# .NET 3 20th Apr 2007 10:47 AM
Fax Console Question =?Utf-8?B?Q2F0dA==?= Windows XP General 4 17th Dec 2004 02:05 PM
Fax Console question John Rampling Windows XP New Users 2 1st Dec 2004 09:10 PM
another Fax Console question Babel17 Windows XP New Users 3 5th Jan 2004 06:13 AM
Re: console one question Chris Stoermer Microsoft Windows 2000 Netware 0 4th Sep 2003 09:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:54 AM.