Keyboard shortcuts

R

Rotsey

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
R

Rotsey

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 said:
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]
- (e-mail address removed)

Rotsey said:
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
 
R

Rotsey

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 said:
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 said:
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]
- (e-mail address removed)

Rotsey said:
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
 

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