PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Messagebox.Show refresh

Reply

Messagebox.Show refresh

 
Thread Tools Rate Thread
Old 24-05-2005, 09:44 AM   #1
=?Utf-8?B?U3RlZmFubw==?=
Guest
 
Posts: n/a
Default Messagebox.Show refresh


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.
  Reply With Quote
Old 24-05-2005, 11:52 AM   #2
Richard Blewett [DevelopMentor]
Guest
 
Posts: n/a
Default Re: Messagebox.Show refresh

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.

  Reply With Quote
Old 24-05-2005, 12:05 PM   #3
=?Utf-8?B?U3RlZmFubw==?=
Guest
 
Posts: n/a
Default Re: Messagebox.Show refresh

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

  Reply With Quote
Old 24-05-2005, 12:36 PM   #4
Richard Blewett [DevelopMentor]
Guest
 
Posts: n/a
Default Re: Messagebox.Show refresh

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


  Reply With Quote
Old 24-05-2005, 04:02 PM   #5
=?Utf-8?B?U3RlZmFubw==?=
Guest
 
Posts: n/a
Default Re: Messagebox.Show refresh

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

>
>

  Reply With Quote
Old 24-05-2005, 05:26 PM   #6
Richard Blewett [DevelopMentor]
Guest
 
Posts: n/a
Default Re: Messagebox.Show refresh

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.

  Reply With Quote
Old 25-05-2005, 11:35 AM   #7
=?Utf-8?B?U3RlZmFubw==?=
Guest
 
Posts: n/a
Default Re: Messagebox.Show refresh

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

  Reply With Quote
Old 25-05-2005, 01:52 PM   #8
Richard Blewett [DevelopMentor]
Guest
 
Posts: n/a
Default Re: Messagebox.Show refresh

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 ?

  Reply With Quote
Old 25-05-2005, 02:28 PM   #9
Michal Dabrowski
Guest
 
Posts: n/a
Default Re: Messagebox.Show refresh

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
  Reply With Quote
Old 26-05-2005, 12:03 PM   #10
=?Utf-8?B?U3RlZmFubw==?=
Guest
 
Posts: n/a
Default Re: Messagebox.Show refresh

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
>

  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