Very Slow MessageBoxes

W

Wayne Fontes

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

RobinS

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

Wayne Fontes

I put a counter before and after the invocation of the MessageBox.Show
call and it took 21 seconds. This is driving me nuts.
 
R

RobinS

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

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