473,503 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2281
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1773
by: Spartanicus | last post by:
Some use the kbd element (Example: <kbd>Ctrl</kbd>+<kbd>G</kbd>) to mark up keyboard shortcuts, but the spec defines kbd as: "Indicates *text* to be entered by the user." (emphasis mine). UA...
0
2493
by: ekta | last post by:
How do we write the code for Keyboard shortcuts in asp.net(c#).Is it possible through javascript only or there is any method/property availaible (like Accesskey) in asp.net. Thanks
5
8612
by: bob lambert | last post by:
Hi, I have a vb .net std 2002 windows form app and wanted to use keyboard shortcuts (& in text property input) It shows up on the design view, but when I build (in debug mode) and display the...
4
2329
by: Helene Day | last post by:
Sorry, this could be a newby question... but how do we do the keyboard shortcuts in .NET buttonname.text = "&Click Me" Does not give the short cut Alt-C for the button. Helene
1
1985
by: Erland | last post by:
Hello, I am using asp.net 2.0 and I want to add keyboard shortcuts to my application just like the shortcuts you see in GMAIL. I was wondering how can I do this in ASP.NET? Scenerio that would...
0
1498
by: Zytan | last post by:
I cannot use & to implement a keyboard shortcut on a TabPage like I can on a Button. Is there a way to easily do this? Maybe TabPages aren't supposed to have keyboard shortcuts, but it would be...
331
14678
by: Xah Lee | last post by:
http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs ---------------------------------------- THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and...
1
3693
by: fiazbfs | last post by:
I would like to know the Keyboard Shortcuts for "Apply Filter", "Filter by Form", "Filter by Selection" in datasheet / form view. It is very annoying to just be able to use the mouse for this...
8
5283
by: BD | last post by:
How can I duplicate the behavior of the operating system shortcut keys in my application? For example, my windows form has 5 controls (textboxes), the operating system will pickup which control...
1
1353
by: Gilbert Tordeur | last post by:
Hello, Context = Web site with VB2008. Is it possible to define keyboard shortcuts on a webpage, to make it possible for the user to "click" on a button or a link, or to set the focus on a...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.