PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
Messagebox.Show refresh
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
Messagebox.Show refresh
![]() |
Messagebox.Show refresh |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
In a C# application I use a message box to display an error.
It is a library MessageBox.Show. It has a Okey button. Sametimes button label and other label are displayed blank ??? In this case I change application (Alt+Tab) and when I came back messagebox is correct displayed. Thank you. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Are you showing the message box from a worker thread?
Regards Richard Blewett - DevelopMentor http://www.dotnetconsult.co.uk/weblog http://www.dotnetconsult.co.uk In a C# application I use a message box to display an error. It is a library MessageBox.Show. It has a Okey button. Sametimes button label and other label are displayed blank ??? In this case I change application (Alt+Tab) and when I came back messagebox is correct displayed. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
I show the message box from main application.
"Richard Blewett [DevelopMentor]" wrote: > Are you showing the message box from a worker thread? > > Regards > > Richard Blewett - DevelopMentor > http://www.dotnetconsult.co.uk/weblog > http://www.dotnetconsult.co.uk > > In a C# application I use a message box to display an error. > It is a library MessageBox.Show. It has a Okey button. > Sametimes button label and other label are displayed blank ??? > In this case I change application (Alt+Tab) and when I came back messagebox is > correct displayed. > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Can you reproduce the behavior in a cut down sample that we can look at?
Regards Richard Blewett - DevelopMentor http://www.dotnetconsult.co.uk/weblog http://www.dotnetconsult.co.uk I show the message box from main application. "Richard Blewett [DevelopMentor]" wrote: > Are you showing the message box from a worker thread? > > Regards > > Richard Blewett - DevelopMentor > http://www.dotnetconsult.co.uk/weblog > http://www.dotnetconsult.co.uk > > In a C# application I use a message box to display an error. > It is a library MessageBox.Show. It has a Okey button. > Sametimes button label and other label are displayed blank ??? > In this case I change application (Alt+Tab) and when I came back messagebox is > correct displayed. > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
This is code that produce the error:
// Memorizzazione dati try { DwcSociLista.UpdateData(); DwcSociVariazioni.UpdateData(); IFrmMain.TrsMain.Commit(); IntUpdateStatus = 1; if (IntUpdateMessage2 == 0) // This is messagebox that not refrash !!! MessageBox.Show("Dati Memorizzati", Text, MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } catch { MessageBox.Show("Errore in memorizzazione dati", Text, MessageBoxButtons.OK, MessageBoxIcon.Error); DwcSociLista.Focus(); return; } It happens only in a PC ... so I had yet changed HW and SW but the behavior don't change. "Richard Blewett [DevelopMentor]" wrote: > Can you reproduce the behavior in a cut down sample that we can look at? > > Regards > > Richard Blewett - DevelopMentor > http://www.dotnetconsult.co.uk/weblog > http://www.dotnetconsult.co.uk > > I show the message box from main application. > > > "Richard Blewett [DevelopMentor]" wrote: > > > Are you showing the message box from a worker thread? > > > > Regards > > > > Richard Blewett - DevelopMentor > > http://www.dotnetconsult.co.uk/weblog > > http://www.dotnetconsult.co.uk > > > > In a C# application I use a message box to display an error. > > It is a library MessageBox.Show. It has a Okey button. > > Sametimes button label and other label are displayed blank ??? > > In this case I change application (Alt+Tab) and when I came back messagebox is > > correct displayed. > > > > > > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
That may well be the code that produces the error but I have no context to be able to understand what is taking place. You also don't say which message box has the problem. Can you reproduce the error in a preferably short, compilable sample so I can see the error on my machine and debug it to work out what is happening.
Regards Richard Blewett - DevelopMentor http://www.dotnetconsult.co.uk/weblog http://www.dotnetconsult.co.uk This is code that produce the error: // Memorizzazione dati try { DwcSociLista.UpdateData(); DwcSociVariazioni.UpdateData(); IFrmMain.TrsMain.Commit(); IntUpdateStatus = 1; if (IntUpdateMessage2 == 0) // This is messagebox that not refrash !!! MessageBox.Show("Dati Memorizzati", Text, MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } catch { MessageBox.Show("Errore in memorizzazione dati", Text, MessageBoxButtons.OK, MessageBoxIcon.Error); DwcSociLista.Focus(); return; } It happens only in a PC ... so I had yet changed HW and SW but the behavior don't change. |
|
|
|
#7 |
|
Guest
Posts: n/a
|
I can't do this.
Because that stange behavior happens only on customer PC ... The same application ,on my PC, works fine !!! The application was builded in DEBUG Mode ... does it generate the problem ? Thank you very much. Stefano "Richard Blewett [DevelopMentor]" wrote: > That may well be the code that produces the error but I have no context to be able to understand what is taking place. You also don't say which message box has the problem. Can you reproduce the error in a preferably short, compilable sample so I can see the error on my machine and debug it to work out what is happening. > > Regards > > Richard Blewett - DevelopMentor > http://www.dotnetconsult.co.uk/weblog > http://www.dotnetconsult.co.uk > > This is code that produce the error: > > // Memorizzazione dati > try > { > DwcSociLista.UpdateData(); > DwcSociVariazioni.UpdateData(); > IFrmMain.TrsMain.Commit(); > IntUpdateStatus = 1; > if (IntUpdateMessage2 == 0) > // This is messagebox that not refrash !!! > MessageBox.Show("Dati Memorizzati", Text, MessageBoxButtons.OK, > MessageBoxIcon.Asterisk); > } > catch > { > MessageBox.Show("Errore in memorizzazione dati", Text, > MessageBoxButtons.OK, MessageBoxIcon.Error); > DwcSociLista.Focus(); > return; > } > > It happens only in a PC ... so I had yet changed HW and SW but the behavior > don't change. > > |
|
|
|
#8 |
|
Guest
Posts: n/a
|
Are you spawning any threads are running any async work (BeginXXX methods)?
Regards Richard Blewett - DevelopMentor http://www.dotnetconsult.co.uk/weblog http://www.dotnetconsult.co.uk I can't do this. Because that stange behavior happens only on customer PC ... The same application ,on my PC, works fine !!! The application was builded in DEBUG Mode ... does it generate the problem ? |
|
|
|
#9 |
|
Guest
Posts: n/a
|
Stefano wrote:
> In a C# application I use a message box to display an error. > It is a library MessageBox.Show. It has a Okey button. > Sametimes button label and other label are displayed blank ??? > In this case I change application (Alt+Tab) and when I came back messagebox is > correct displayed. > > Thank you. AFAIK some people complained about similar issue on this newsgroup few times - and then the problem was caused by McAffe AntiVirus software. Search news archive to find more specific info. HTH. Best regards, Michal Dabrowski |
|
|
|
#10 |
|
Guest
Posts: n/a
|
Thank you !!!
PC have installed McAffe 8.0 !!! Do you have any suggestions ? "Michal Dabrowski" wrote: > Stefano wrote: > > In a C# application I use a message box to display an error. > > It is a library MessageBox.Show. It has a Okey button. > > Sametimes button label and other label are displayed blank ??? > > In this case I change application (Alt+Tab) and when I came back messagebox is > > correct displayed. > > > > Thank you. > > AFAIK some people complained about similar issue on this newsgroup few > times - and then the problem was caused by McAffe AntiVirus software. > Search news archive to find more specific info. HTH. > > Best regards, > Michal Dabrowski > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

