PC Review


Reply
Thread Tools Rate Thread

Messagebox.Show refresh

 
 
=?Utf-8?B?U3RlZmFubw==?=
Guest
Posts: n/a
 
      24th May 2005
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
 
 
 
 
Richard Blewett [DevelopMentor]
Guest
Posts: n/a
 
      24th May 2005
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
 
=?Utf-8?B?U3RlZmFubw==?=
Guest
Posts: n/a
 
      24th May 2005
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
 
Richard Blewett [DevelopMentor]
Guest
Posts: n/a
 
      24th May 2005
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
 
=?Utf-8?B?U3RlZmFubw==?=
Guest
Posts: n/a
 
      24th May 2005
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
 
Richard Blewett [DevelopMentor]
Guest
Posts: n/a
 
      24th May 2005
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
 
=?Utf-8?B?U3RlZmFubw==?=
Guest
Posts: n/a
 
      25th May 2005
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
 
Richard Blewett [DevelopMentor]
Guest
Posts: n/a
 
      25th May 2005
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
 
Michal Dabrowski
Guest
Posts: n/a
 
      25th May 2005
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
 
=?Utf-8?B?U3RlZmFubw==?=
Guest
Posts: n/a
 
      26th May 2005
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
To show a messagebox pol Microsoft Excel Misc 3 17th Jul 2009 02:05 PM
Re: screen refresh problem with messagebox Jack Jackson Microsoft VB .NET 0 4th Feb 2009 01:06 AM
Re: screen refresh problem with messagebox Stanimir Stoyanov Microsoft VB .NET 1 4th Feb 2009 12:12 AM
Automatic Refresh of page (using a timer and .reload) causes messagebox. UJ Microsoft ASP .NET 2 12th Aug 2005 05:40 PM
MessageBox.Show don't show up after Application.Run() babylon Microsoft Dot NET Framework Forms 5 17th Feb 2004 02:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:26 PM.