Don't close input on Application start?

  • Thread starter Thread starter Boris Nienke
  • Start date Start date
B

Boris Nienke

when i start an Application (C#) the input-panel is closed.
how can stop this?

Boris
 
no - then the inputPanel will allways be visible when the application
starts.

i like to keep the actual state of the inputPanel. When user has opened it,
keep it open. He closed it - keep it closed.

This is because i'm trying to make an application with no visible form (i'm
currently trying this by overriding the OnPaint and OnPaintBackground.

If i try to do this without showing a form at all (i've tried to call my
function from the Main() function) there's the WaitCursor visible all the
time (have tried to set it to Default but it didn't work)

Boris
 
I'm confused. If you want no form, then why have one in the app at all?

-Chris
 
I'm confused.

i'm too :-)
If you want no form, then why have one in the app at all?

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
 
Back
Top