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 / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Very Slow MessageBoxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wayne Fontes - 05 Jan 2007 19:17 GMT
Hoping someone out there can help. I was primarily a web developer
(ASP.NET, C#) and have ventured into winforms for a few projects.  I
love it so far, but am having a problem.

I have a windows application.  The solution contains project which
contains control base classes that I will use for all winform apps.  So
the controls project has base classes for grids, Infragistics
UltraGrid, ErrorProvider and many others.

I'm not sure if that is the problem, but when I do a messagebox.show,
it can take a long time to render, sometimes 30 seconds or more.  When
I do this same call in a debug session, I go right over the breakpoint
without delay.  

Any clues on what could be causing this?
RobinS - 05 Jan 2007 22:02 GMT
You could put some kind of display before and after the
messagebox statement (just a debug.print Now()) to show how
long it took (be sure to click on it quickly when it finally
comes up) and make sure it's really the invoking of the
messagebox that's taking so long.

Also, what does your call to messagebox.show include? Does
it have anything un-ordinary in it? Show us, please, we're
dying of curiousity. I am, anyway. ;-)

Robin S.
-------------------------------
> Hoping someone out there can help. I was primarily a web developer
> (ASP.NET, C#) and have ventured into winforms for a few projects.  I
[quoted text clipped - 12 lines]
>
> Any clues on what could be causing this?
Wayne Fontes - 08 Jan 2007 18:29 GMT
I put a counter before and after the invocation of the MessageBox.Show
call and it took 21 seconds.  This is driving me nuts.

> You could put some kind of display before and after the
> messagebox statement (just a debug.print Now()) to show how
[quoted text clipped - 24 lines]
> >
> > Any clues on what could be causing this?
RobinS - 08 Jan 2007 19:11 GMT
I can see where it would. Just for grins, can you post
your messagebox.show statement? I'll paste it into
one of my apps and try it out.

Robin S.
--------------------------
>I put a counter before and after the invocation of the MessageBox.Show
> call and it took 21 seconds.  This is driving me nuts.
[quoted text clipped - 31 lines]
>> >
>> > Any clues on what could be causing this?

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.