Re: Keyboard shortcuts
- From: "Rotsey" <malcolm_smith@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 9 Sep 2007 22:23:11 +1000
After more testing it seems that sometimes it is quick other times
slow to load the app.
So what I have now done is put the app in th system tray
and hidden then form. Also registered a hotkey when the
app loads and on the hotkey show the form and on the escape
key hide the form.
And this works great.
"Rotsey" <malcolm_smith@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uCQvyqc8HHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
Well I have tested with a skeleton form and the same delay esists.
What I want is the same response the Ctrl Alty Del has when
opening task manager.
Is there away of calling Win32 API to achieve that performance???
"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in message news:u2kilhV8HHA.5504@xxxxxxxxxxxxxxxxxxxxxxx
rotsey,
Well, it very well could have to do with the initialization of the
form. Is there anything in the constructors for the form, or the user
controls created on the form that could cause a delay? What about the
Load events of the controls hosted on the form, or the Load event of the
form itself?
There are many places where slowdown can happen, and it is most likely
an issue with code you have written which either processes the shortcut
key, or opens the form, but without seeing any of it, we can't tell.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Rotsey" <malcolm_smith@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ue71POV8HHA.2004@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have windows app that I have a windows keyboard shortcut for.
I am finding that the shortcut is not all that responsive.
ie it takes sometimes more than a 5 seconds for form
to appear or longer.
Is this something I can improve or is it the windows
messaging system that is causing the delay.
I would like it to be 2 seconds or so.
rotsey
.
- References:
- Keyboard shortcuts
- From: Rotsey
- Re: Keyboard shortcuts
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Keyboard shortcuts
- From: Rotsey
- Keyboard shortcuts
- Prev by Date: Re: Help With Variable Scope!
- Next by Date: Re: Help With Variable Scope!
- Previous by thread: Re: Keyboard shortcuts
- Next by thread: Re: question about the using statement: datareaders, and connections
- Index(es):
Relevant Pages
|