Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / September 2007

Tip: Looking for answers? Try searching our database.

Keyboard shortcuts

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rotsey - 07 Sep 2007 14:32 GMT
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
Nicholas Paldino [.NET/C# MVP] - 07 Sep 2007 15:09 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi,
>
[quoted text clipped - 11 lines]
>
> rotsey
Rotsey - 08 Sep 2007 04:45 GMT
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???

> rotsey,
>
[quoted text clipped - 23 lines]
>>
>> rotsey
Rotsey - 09 Sep 2007 13:23 GMT
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.

> Well I have tested with a skeleton form and the same delay esists.
>
[quoted text clipped - 30 lines]
>>>
>>> rotsey

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.