How Hide Cursor? Dont Work!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

i try since few months to hide my cursor. It don´t works. My first Try was
Cursor.Hide() but it don´t work. The Next Try was the UIPermission but the
Permissions don´t work, i don´t know why!

Now my idea, when i don´t can hide the cursor i could load a blank cursor
symbol, but i don´t know how.

Or another idea was, bring the cursor to position 800x600 but i don´t know
how.

Plz help
 
No, it don´t work. How i said. The Code : Cursor.Hide
And the Code cursor.current = cursors.wait don´t work.

I got a Win CE.net 4.2 with CF on an MIPS II, i go crazy in few days. The
F*** don´t work. I try it since 6 months.
 
6 months on a cursor is along time... As I said post a complete example of
the code you are trying. You are not for example trying this from a non-GUI
thread are you? Or while the form is loading? It could be a problem with
your platform; do you see the cursor in any other scenario (e.g. as your app
is coming up or as IE tries to load a page etc)

Cheers
Daniel
 
So the question is how is the curspor shown in the first place? Is the
device showing a pointer cursor at all times becasue you have a mouse
installed? Is it showing the cursor only at certain times, like when the
system is in use? You really need to provide a bit more info if you want to
solve this, but my guess is that the system is showing it in the display
driver becasue of some hardware presence. If that's the case, I'm afraid to
say that I doubt you can remove it via code, because the mouse cursor
control could be outside GWES. Have you asked your OEM if there's a way to
hide it?
 
6 months on a cursor is along time... As I said post a complete example of
the code you are trying. You are not for example trying this from a non-GUI
thread are you? Or while the form is loading? It could be a problem with
your platform; do you see the cursor in any other scenario (e.g. as your app
is coming up or as IE tries to load a page etc)

i have a similiar problem. But in my case it's the wait cursor not going
away quick enough after the application is loaded.

In my case i need to make a screen-shot as soon as the application is
loaded (no forms of the application are active at this point). But the
wait-cursor is visible on the screen-shot then!

i have added a form then (with an overwritten paint-event so that nothing
of the form is beeing painted). But still the same problem.

it seems, that the wait cursor isn't really active, but the background
isn't repainted (the underlaying applications)

Question is: Is there a way to force all applications to repaint itself?
Maybe the cursor will then go away when it is set to .hide or .default
before?
 
I haven't encountered that before but at a guess, your app is still loading
while you are trying to take the screenshot so the cursor is shown to
indicate that your app has not loaded yet. In that case, since you did not
show the cursor in the first place, I doubt you can hide it. Sounds like you
must either take the screenshot after your app has finished loading OR do
not show forms as part of your loading process (and only continue loading
them after you have taken the screenshot) OR maybe Application.DoEvents
could help OR use a C++ launcher app and do the screen shot in there and
only then launch your managed app). As you can read, pure speculation.

Cheers
Daniel
 
Thx, for answering.

The PocketPC is an (FRED from KWS) an there is no mouse but an touchscreen.
And i tryed Cursor.Hide in many methods and no of it works. And there is no
dll like cursor.dll or mcursor.dll or anything else where i can hide the
mousecursor.

Doc
 
I haven't encountered that before but at a guess, your app is still loading
while you are trying to take the screenshot so the cursor is shown to

is there a chance to get notified when the App has finished loading?
indicate that your app has not loaded yet. In that case, since you did not
show the cursor in the first place, I doubt you can hide it. Sounds like you

yes - the wait-cursor is the one of the framework :'(
must either take the screenshot after your app has finished loading OR do

cool - but how ;) ?
not show forms as part of your loading process (and only continue loading
them after you have taken the screenshot)

as said - i've tried without forms - no chance
OR maybe Application.DoEvents

didn't work
could help OR use a C++ launcher app and do the screen shot in there and
only then launch your managed app). As you can read, pure speculation.

A C++ would be cool - but i'm not a C++ coder and really don't know how to
do that stuff (i need to read some textfiles before taking the shot etc.)

I don't know when the framework will hide the cursor at all. Isn't it
possbile to write a formless application in .Net for the pocketPC and get
informed when loading is finished (so get informed when wait-cursor is gone
away?)
....i "hate" that framework-waitcursor >:-(

Boris
 
I haven't explicitly looked into getting notified when an App has finished
loading... [maybe someone that has will chip in]

Off the top of my head I would fire a 500 millis timer at the end of the
form load event (of the only/last form you create in your app) and try the
screen capture in the callback/eventhandler. Without having experienced the
problem myself or having your screen capture/startup logic I cannot think of
anything else.

As for a formless app, yes you can create a console/non-graphical
application [it is one of the options when you create a new smart device
project]. Maybe that will work for you.

Cheers
Daniel
 
Off the top of my head I would fire a 500 millis timer at the end of the
form load event (of the only/last form you create in your app) and try the
screen capture in the callback/eventhandler. Without having experienced the
problem myself or having your screen capture/startup logic I cannot think of
anything else.

yes - the time-thing was one of my trials... i have captured in the
ontimer-event... but the waitcursor is still active then
As for a formless app, yes you can create a console/non-graphical
application [it is one of the options when you create a new smart device
project]. Maybe that will work for you.

yes that's clear - but the same problem as with a form: when you run the
app, the CF will activate the waitcursor... and it won't get away when i
want it

well, as said, i think the wait cursor is maybe off - but you can still see
it because the underlaying window (application that is active) will not
repaint itself ... it's just an idea.. i don't know how to proof this and -
if this is the case - how to solve this.

too sad that you cannot give a command or something to say the CF that you
DON'T want the wait-cursor when the app is loaded... that would be a nice
feature (not only for my very special problem but also if you load
applications from within your application. I would decide when and how i
like to see a wait-symbol... maybe i will load a second app in a thread -
but CF will show a wait-cursor.. i don't like that)

Boris
 
If even the combination of a timer with a non-graphical app fails then I
don't know how to work around it. If you post a small reproducible sample
maybe we can take it further.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


Boris Nienke said:
Off the top of my head I would fire a 500 millis timer at the end of the
form load event (of the only/last form you create in your app) and try
the
screen capture in the callback/eventhandler. Without having experienced
the
problem myself or having your screen capture/startup logic I cannot think
of
anything else.

yes - the time-thing was one of my trials... i have captured in the
ontimer-event... but the waitcursor is still active then
As for a formless app, yes you can create a console/non-graphical
application [it is one of the options when you create a new smart device
project]. Maybe that will work for you.

yes that's clear - but the same problem as with a form: when you run the
app, the CF will activate the waitcursor... and it won't get away when i
want it

well, as said, i think the wait cursor is maybe off - but you can still
see
it because the underlaying window (application that is active) will not
repaint itself ... it's just an idea.. i don't know how to proof this
and -
if this is the case - how to solve this.

too sad that you cannot give a command or something to say the CF that you
DON'T want the wait-cursor when the app is loaded... that would be a nice
feature (not only for my very special problem but also if you load
applications from within your application. I would decide when and how i
like to see a wait-symbol... maybe i will load a second app in a thread -
but CF will show a wait-cursor.. i don't like that)

Boris
 
If even the combination of a timer with a non-graphical app fails then I
don't know how to work around it. If you post a small reproducible sample
maybe we can take it further.

Hm... i will see if i can strip it down to a small example...

Boris
 
Back
Top