again: no wait-cursor - or: don't touch the inputPanel-state

B

Boris Nienke

OK, in detail:

On of the very first things i like to do when the app is started, is to
capture the screen.
This means
- i don't want to change the input-panel-style
- i don't want to have a WaitCursor visible on screen.

With the .Net-Studio i've created a new application. One Form is created by
the wizard. Then i have deleted the line "Application.run(new Form1())" and
replaced it with a call to my subroutine (to capture the screen for
example).

but: at this point i still have the WaitCursor visible! Setting it to
Cursors.Default doesn't help. Calling Application.Process() (or something
like that - i'm not at home to look) doesn't help.

So i tried it by calling the Form1 again and to my shot in the
loaded-event. To avoid form-painting i've override the OnPaint and
OnPaintBackground.

This way i'm able to disable the WaitCursor (set it to Default and then let
the application process messages) but the input panel is disabled (which
would be OK for a standard application but not if you try to capture the
screen)

Do you understand my problem?
The best solution for me would be to disable the WaitCursor and working
without any form... but how?

Boris
 
C

Chris Tacke, eMVP

I believe the WaitCursor is thrown by the framework itself as it JITs your
first code, so I don't think you can hide it. The InputPanel state may be a
similar issue.

-Chris
 
B

Boris Nienke

Maybe there's a work-around possible by using the API?

The InputPanel is still unchanged until the first Form is created. So i
think, if you have an application that creates no form at all, this will be
OK.

Only problem: the Wait-Cursor.
I mean: my application is started - i'm in the main() function. So i think
there must be a way to disable/hide the waitcursor. not?

Any Idea?

Boris
 

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