PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Very Slow MessageBoxes

Reply

Very Slow MessageBoxes

 
Thread Tools Rate Thread
Old 05-01-2007, 07:17 PM   #1
Wayne Fontes
Guest
 
Posts: n/a
Default Very Slow MessageBoxes


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?

  Reply With Quote
Old 05-01-2007, 10:02 PM   #2
RobinS
Guest
 
Posts: n/a
Default Re: Very Slow MessageBoxes

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.
-------------------------------
"Wayne Fontes" <schmoogan@gmail.com> wrote in message
news:1168024646.490091.84140@i15g2000cwa.googlegroups.com...
> 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?
>



  Reply With Quote
Old 08-01-2007, 06:29 PM   #3
Wayne Fontes
Guest
 
Posts: n/a
Default Re: Very Slow MessageBoxes

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

RobinS wrote:
> 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.
> -------------------------------
> "Wayne Fontes" <schmoogan@gmail.com> wrote in message
> news:1168024646.490091.84140@i15g2000cwa.googlegroups.com...
> > 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?
> >


  Reply With Quote
Old 08-01-2007, 07:11 PM   #4
RobinS
Guest
 
Posts: n/a
Default Re: Very Slow MessageBoxes

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.
--------------------------
"Wayne Fontes" <schmoogan@gmail.com> wrote in message
news:1168280981.758749.303240@51g2000cwl.googlegroups.com...
>I put a counter before and after the invocation of the MessageBox.Show
> call and it took 21 seconds. This is driving me nuts.
>
> RobinS wrote:
>> 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.
>> -------------------------------
>> "Wayne Fontes" <schmoogan@gmail.com> wrote in message
>> news:1168024646.490091.84140@i15g2000cwa.googlegroups.com...
>> > 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?
>> >

>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off