PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Very Slow MessageBoxes
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Very Slow MessageBoxes
![]() |
Very Slow MessageBoxes |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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? > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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? > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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? >> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

