Slow response button selection

  • Thread starter Thread starter Dvae c
  • Start date Start date
D

Dvae c

I have a main form that has several buttons that will go to one of
several other forms when button is selected (I have button as well as
selection in MainMenu control). It seems there is a 4-5 second delay
between when I select a button and the code that executes the
form.show() command after the button button_click event (timed in
debug mode with breakpoint). Does anyone know why or how to correct a
long delay between when the button is selected and the action (click)
event is recognized?
 
Hi,

Have you tried running your application without a debugger attached (the
debugger can slow down your application, especially if lots of conditional
breakpoints are set).
The other thing to look at is what you do in other events that may fire
before the button's click event (such as focus events, databinding with
other controls, etc.).
And lastly, purhaps the creation of your form is what's taking so
long...consider pre-creating your form at the start of the application and
using .ShowDialog so that it can be reused. Here are some tips to help you
with form creation performance:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/netcfimproveformloadperf.asp

Hope this helps you out,
-Katie

--------------------
| From: (e-mail address removed) (Dvae c)
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Slow response button selection
| Date: 22 Oct 2003 15:08:11 -0700
| Organization: http://groups.google.com
| Lines: 8
| Message-ID: <[email protected]>
| NNTP-Posting-Host: 24.247.185.107
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1066860491 1272 127.0.0.1 (22 Oct 2003
22:08:11 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: Wed, 22 Oct 2003 22:08:11 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!diablo.theplanet.net!news.maxwell.syr.edu!postnews1.google.com!not-for-
mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:36618
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I have a main form that has several buttons that will go to one of
| several other forms when button is selected (I have button as well as
| selection in MainMenu control). It seems there is a 4-5 second delay
| between when I select a button and the code that executes the
| form.show() command after the button button_click event (timed in
| debug mode with breakpoint). Does anyone know why or how to correct a
| long delay between when the button is selected and the action (click)
| event is recognized?
|

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top