468,110 Members | 1,679 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,110 developers. It's quick & easy.

Keyboard shortcuts

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
Sep 7 '07 #1
3 2120
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]
- mv*@spam.guard.caspershouse.com

"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:ue**************@TK2MSFTNGP06.phx.gbl...
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


Sep 7 '07 #2
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]" <mv*@spam.guard.caspershouse.comwrote in
message news:u2**************@TK2MSFTNGP02.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:ue**************@TK2MSFTNGP06.phx.gbl...
>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



Sep 8 '07 #3
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" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:uC**************@TK2MSFTNGP03.phx.gbl...
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]" <mv*@spam.guard.caspershouse.comwrote
in message news:u2**************@TK2MSFTNGP02.phx.gbl...
>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]
- mv*@spam.guard.caspershouse.com

"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:ue**************@TK2MSFTNGP06.phx.gbl...
>>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




Sep 9 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Spartanicus | last post: by
reply views Thread by ekta | last post: by
5 posts views Thread by bob lambert | last post: by
4 posts views Thread by Helene Day | last post: by
1 post views Thread by Erland | last post: by
331 posts views Thread by Xah Lee | last post: by
8 posts views Thread by BD | last post: by
1 post views Thread by Gilbert Tordeur | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.