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.